exception: Fix EL1 exception return path

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2024-06-04 15:14:41 +09:00
parent 94a6b50684
commit 8a122f86c4

View file

@ -250,7 +250,7 @@ void exc_sync(u64 *regs)
// Short-circuit the hypercall and handle the EL1 exception
el12 = 1;
msr(SPSR_EL2, mrs(SPSR_EL12));
msr(ELR_EL2, mrs(ELR_EL12));
elr = mrs(ELR_EL12);
break;
default:
printf("Unknown HVC: 0x%x\n", imm);