We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df80f4 commit 9bfb820Copy full SHA for 9bfb820
src/arch/riscv/sync_exceptions.c
@@ -80,7 +80,7 @@ static inline bool is_pseudo_ins(uint32_t ins)
80
81
static size_t guest_page_fault_handler(void)
82
{
83
- vaddr_t addr = csrs_htval_read() << 2;
+ vaddr_t addr = (csrs_htval_read() << 2) | (csrs_stval_read() & 0x3);
84
85
emul_handler_t handler = vm_emul_get_mem(cpu()->vcpu->vm, addr);
86
if (handler != NULL) {
0 commit comments