summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorBin Lu <bin.lu@arm.com>2020-10-16 10:26:56 -0400
committerBin Lu <bin.lu@arm.com>2020-10-22 06:00:33 -0400
commitd1786edba473b535cce1b9f30d6db804251ea0b5 (patch)
tree01bb8d6a6d22bca50730e7566d39e2b8619da2a8 /test
parent0a7e32bd17fb3f4aae8fdea427283cda49fe002f (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/util/signal_util.h2
1 files changed, 1 insertions, 1 deletions
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"
:
: