From 9e79a30a8d3be593d17489f6b7334e9d88a37657 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 16 Jan 2014 00:12:18 -0800 Subject: Source test failure value from correct register --- p/riscv_test.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'p') 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; \ //----------------------------------------------------------------------- -- cgit v1.1