Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/riscv/cpu_registers.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ uint32_t *get_reg_pointer_32(int reg)
return &(cpu->mip);
case SPTBR_32: // same index as SATP_32
return (cpu->privilege_architecture >= RISCV_PRIV1_10) ? &(cpu->satp) : &(cpu->sptbr);
case MTVT_32:
return &(cpu->mtvt);
case MSTATUS_32:
return &(cpu->mstatus);
case MISA_32:
Expand Down
1 change: 1 addition & 0 deletions arch/riscv/cpu_registers.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ typedef enum {
SIP_32 = 0x185,
SATP_32 = 0x1C1,
SPTBR_32 = 0x1C1,
MTVT_32 = 0x307,
MSTATUS_32 = 0x341,
MISA_32 = 0x342,
MEDELEG_32 = 0x343,
Expand Down