gdbstub on bp, unreachable, previous privilege S
This commit is contained in:
@@ -42,6 +42,8 @@ void interrupt_trigger(rv32_cpu_t* cpu, uint32_t scause)
|
||||
cpu->csr[CSR_SSTATUS] |= 0x80;
|
||||
|
||||
// Set xSTATUS.xPP (Previous Privilege) bit
|
||||
// TODO : Allow user mode interrupts (by not setting this)
|
||||
cpu->csr[CSR_SSTATUS] |= 0x100;
|
||||
|
||||
// Unset xSTATUS.xIE (interrupt enable) bit
|
||||
cpu->csr[CSR_SSTATUS] &= ~0b10U;
|
||||
|
||||
Reference in New Issue
Block a user