Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates 2.0.4 issue 97 #159

Open
wants to merge 4 commits into
base: updates-2.0.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions branchTrace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ The instruction trace encoder needs to synchronise fully:
was not traced;
* If the instruction is the first of an interrupt service routine or
exception handler;
* If the privilege level changes;
* After a prolonged period of time.

[[sec:endoftrace]]
Expand Down
4 changes: 3 additions & 1 deletion payload.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ must be left shifted in order to recreate original byte address.
|===

[[sec:thaddr]]
==== Format 3 *thaddr* and *address* fields
==== Format 3 *thaddr*, *address* and *privilege* fields

If an exception occurs at the target of an uninferable PC discontinuity,
the value of the EPC cannot be infered from the program binary, and so
Expand All @@ -206,6 +206,8 @@ is 0 is that it may be at either the address of the next instruction or
current instruction depending on the exception cause, which can be
inferred by the decoder without adding complexity to the encoder.)

Where an interrupt or exception causes a privilege change, this changes comes into force from the start of the trap handler. As such, the privilege value reported when *thaddr* is 0 will be the privilege level prior to any change.
IainCRobertson marked this conversation as resolved.
Show resolved Hide resolved

==== Format 3 *tval* field

This field reports the "trap value" from the appropriate
Expand Down
Loading