SysCall/AARCH64: Increased probability of QEMU's normal work.

This commit is contained in:
Mikhail Krichanov 2024-05-29 14:55:26 +03:00
parent 8439ad67b4
commit 19f1211cd5
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ ASM_FUNC(ArmCallRing3)
ASM_FUNC(ReturnToCore)
// Zero Exception Syndrome Register to prevent QEMU from random crashing.
msr esr_el1, xzr
msr spsr_el1, xzr
msr elr_el1, xzr
msr far_el1, xzr
// Switch to Core Stack.
mov sp, x1
// Restore Stack.