Skip to content

Commit

Permalink
Fix error in string_of_capreg_idx.
Browse files Browse the repository at this point in the history
The MTCC / MTDC were incorrectly reported due to a one bit typo in the match case.
  • Loading branch information
ronorton committed Jun 24, 2024
1 parent bbf90ec commit 9829a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sail-riscv
2 changes: 1 addition & 1 deletion src/cheri_regs.sail
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function string_of_capreg_idx(reg : capreg_idx) -> string =
match reg {
0b0 @ greg : bits(5) => "c" ^ dec_str(unsigned(greg)) ^ "/" ^ cap_reg_name_abi(greg),
0b100000 => "PCC",
0b111101 => "MTCC",
0b111100 => "MTCC",
0b111101 => "MTDC",
0b111110 => "MScratchC",
0b111111 => "EPCC",
Expand Down

0 comments on commit 9829a91

Please sign in to comment.