arm64 test: enabled Fault() function

Currently, this Fault() function does not work properly on the arm platform.

After modification, sigaltstack_test_runsc_kvm can be passed on
Arm64.

Signed-off-by: Bin Lu <bin.lu@arm.com>
This commit is contained in:
Bin Lu 2020-10-16 10:26:56 -04:00
parent 0a7e32bd17
commit d1786edba4
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ inline void FixupFault(ucontext_t* ctx) {
#elif __aarch64__
inline void Fault() {
// Zero and dereference x0.
asm("mov xzr, x0\r\n"
asm("mov x0, xzr\r\n"
"str xzr, [x0]\r\n"
:
: