diff options
-rw-r--r-- | p/riscv_test.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h index 4a79b09..a121846 100644 --- a/p/riscv_test.h +++ b/p/riscv_test.h @@ -99,10 +99,10 @@ _start: \ #define RVTEST_FAIL \ fence; \ - beqz a0, 1f; \ - sll a0, a0, 1; \ - or a0, a0, 1; \ - csrw tohost, a0; \ + beqz x28, 1f; \ + sll x28, x28, 1; \ + or x28, x28, 1; \ + csrw tohost, x28; \ 1: b 1b; \ //----------------------------------------------------------------------- |