aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uv/amoswap_w.S
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64uv/amoswap_w.S')
-rw-r--r--isa/rv64uv/amoswap_w.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/isa/rv64uv/amoswap_w.S b/isa/rv64uv/amoswap_w.S
index c068569..6a5b1fb 100644
--- a/isa/rv64uv/amoswap_w.S
+++ b/isa/rv64uv/amoswap_w.S
@@ -26,7 +26,7 @@ RVTEST_CODE_BEGIN
li a1,0
loop:
lw a0,0(a6)
- addi x28,a1,2
+ addi TESTNUM,a1,2
bne a0,a1,fail
addi a6,a6,4
addi a1,a1,1