From d1786edba473b535cce1b9f30d6db804251ea0b5 Mon Sep 17 00:00:00 2001 From: Bin Lu Date: Fri, 16 Oct 2020 10:26:56 -0400 Subject: [PATCH] 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 --- test/util/signal_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util/signal_util.h b/test/util/signal_util.h index e7b66aa51..20eebd7e4 100644 --- a/test/util/signal_util.h +++ b/test/util/signal_util.h @@ -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" : :