Skip to content

Commit 9829a91

Browse files
committed
Fix error in string_of_capreg_idx.
The MTCC / MTDC were incorrectly reported due to a one bit typo in the match case.
1 parent bbf90ec commit 9829a91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sail-riscv

src/cheri_regs.sail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function string_of_capreg_idx(reg : capreg_idx) -> string =
211211
match reg {
212212
0b0 @ greg : bits(5) => "c" ^ dec_str(unsigned(greg)) ^ "/" ^ cap_reg_name_abi(greg),
213213
0b100000 => "PCC",
214-
0b111101 => "MTCC",
214+
0b111100 => "MTCC",
215215
0b111101 => "MTDC",
216216
0b111110 => "MScratchC",
217217
0b111111 => "EPCC",

0 commit comments

Comments
 (0)