From f8f21d7535a87af5b4b34f1eb1b4136f5308bb16 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sat, 9 Jun 2018 17:57:42 +0100 Subject: [PATCH] right registers --- kernel_module/user/m5ops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel_module/user/m5ops.c b/kernel_module/user/m5ops.c index f22a8da..3df1d9f 100644 --- a/kernel_module/user/m5ops.c +++ b/kernel_module/user/m5ops.c @@ -6,19 +6,19 @@ #if defined(__aarch64__) static void m5_checkpoint(uint64_t x, uint64_t y) { - __asm__ __volatile__ (".inst 0xff430110;":: "r" (x), "r" (y)); + __asm__ __volatile__ (".inst 0xff430110;":: "x0" (x), "x1" (y)); }; static void m5_dump_stats(uint64_t x, uint64_t y) { - __asm__ __volatile__ (".inst 0xff410110;":: "r" (x), "r" (y)); + __asm__ __volatile__ (".inst 0xff410110;":: "x0" (x), "x1" (y)); }; static void m5_exit(uint64_t x) { - __asm__ __volatile__ (".inst 0xff210110;":: "r" (x)); + __asm__ __volatile__ (".inst 0xff210110;":: "x0" (x)); }; static void m5_reset_stats(uint64_t x, uint64_t y) { - __asm__ __volatile__ (".inst 0xff400110;":: "r" (x), "r" (y)); + __asm__ __volatile__ (".inst 0xff400110;":: "x0" (x), "x1" (y)); }; #else #undef ENABLED