summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-16 00:12:18 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-16 00:12:18 -0800
commit9e79a30a8d3be593d17489f6b7334e9d88a37657 (patch)
treef3d07d35f42c7104d99e14b54a0756f94b67371d
parent22354ec7c185d53b651a845b69c13d87b65f98c7 (diff)
downloadenv-9e79a30a8d3be593d17489f6b7334e9d88a37657.zip
env-9e79a30a8d3be593d17489f6b7334e9d88a37657.tar.gz
env-9e79a30a8d3be593d17489f6b7334e9d88a37657.tar.bz2
Source test failure value from correct register
-rw-r--r--p/riscv_test.h8
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; \
//-----------------------------------------------------------------------