Skip to content

Commit 1b8dd49

Browse files
committed
fix: use csr_handles
1 parent 81b1b2e commit 1b8dd49

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spec/std/isa/inst/Zcmt/cm.jalt.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ access:
2525
vu: always
2626
operation(): |
2727
# Ensure JVT readable
28-
XReg jvt = csr_sw_read(0x017);
28+
Csr csr_handle = direct_csr_lookup(0x017);
29+
XReg jvt = csr_sw_read(csr_handle);
2930
3031
if (CSR[jvt].MODE != 0) {
3132
raise(ExceptionCode::IllegalInstruction, mode(), $encoding);

spec/std/isa/inst/Zcmt/cm.jt.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ access:
2323
vu: always
2424
operation(): |
2525
# Ensure JVT readable
26-
XReg jvt = csr_sw_read(0x017);
26+
Csr csr_handle = direct_csr_lookup(0x017);
27+
XReg jvt = csr_sw_read(csr_handle);
2728
2829
if (CSR[jvt].MODE != 0) {
2930
raise(ExceptionCode::IllegalInstruction, mode(), $encoding);

0 commit comments

Comments
 (0)