Skip to content

Commit

Permalink
target/riscv: dont set mcause and mstatus as cachable
Browse files Browse the repository at this point in the history
With CLIC extension (smclic), mcause and mstatus CSRs
share mirrored fields for mpp and mpie. Therefore, neither
can be assumed cachable.

Signed-off-by: Samuel Obuch <[email protected]>
  • Loading branch information
sobuch committed Jan 27, 2025
1 parent e870c5f commit 94d739a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/target/riscv/riscv_reg_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ static inline bool riscv_reg_impl_gdb_regno_cacheable(enum gdb_regno regno,
case GDB_REGNO_MISA:
case GDB_REGNO_DCSR:
case GDB_REGNO_DSCRATCH0:
case GDB_REGNO_MSTATUS:
case GDB_REGNO_MEPC:
case GDB_REGNO_MCAUSE:
case GDB_REGNO_SATP:
/*
* WARL registers might not contain the value we just wrote, but
Expand Down

0 comments on commit 94d739a

Please sign in to comment.