Skip to content

Commit

Permalink
Renamed MASK to VTMASK as requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ball-qualcomm committed Sep 24, 2024
1 parent bee378f commit 8203326
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/clic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1590,9 +1590,9 @@ by the additional {tvt} CSR.
[source]
----
mode submode PC on Interrupt
00 xxxx OBASE # CLINT direct mode
01 xxxx OBASE+4*exccode # CLINT vectored mode
11 0000 shv ? (M[VTBASE+XLEN/8*exccode)] & MASK) : NBASE # CLIC mode
00 xxxx OBASE # CLINT direct mode
01 xxxx OBASE+4*exccode # CLINT vectored mode
11 0000 shv ? (M[VTBASE+XLEN/8*exccode)] & VTMASK) : NBASE # CLIC mode
10 0000 Reserved
1x yyyy Reserved
Expand All @@ -1604,7 +1604,7 @@ where:
x = any value (don't care)
yyyy = any non-zero value
M[a] = Contents of memory address at address "a"
MASK = ~0x1 if IALIGN=16 or ~0x3 if IALIGN=32
VTMASK = ~0x1 if IALIGN=16 or ~0x3 if IALIGN=32
----

In CLIC mode, writing `0` to `clicintattr[__i__].shv`
Expand All @@ -1629,7 +1629,7 @@ the exception handler privilege mode contains a trap handler function address in

The overall effect is:

pc := M[VTBASE + XLEN/8 * exccode] & MASK
pc := M[VTBASE + XLEN/8 * exccode] & VTMASK

[source]
----
Expand Down

0 comments on commit 8203326

Please sign in to comment.