X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64mi%2Fbreakpoint.S;fp=isa%2Frv64mi%2Fbreakpoint.S;h=ba683cc6608e6d3b8bd28bfd6b3700d59d1861bf;hb=56f46aa0f9688c87ce9ebd7658e19b884b018b6b;hp=b318c30399e0ce815ac7471a8c33d031a272ed27;hpb=b68b39031a730ecc155ed87fba2ed5f111d0ab07;p=riscv-tests.git diff --git a/isa/rv64mi/breakpoint.S b/isa/rv64mi/breakpoint.S index b318c30..ba683cc 100644 --- a/isa/rv64mi/breakpoint.S +++ b/isa/rv64mi/breakpoint.S @@ -23,7 +23,7 @@ RVTEST_CODE_BEGIN # Make sure there's a breakpoint there. csrr a0, tdata1 - srli a0, a0, _RISCV_SZLONG-4 + srli a0, a0, __riscv_xlen - 4 li a1, 2 bne a0, a1, pass @@ -90,7 +90,7 @@ RVTEST_CODE_BEGIN # Make sure there's a breakpoint there. csrr a0, tdata1 - srli a0, a0, _RISCV_SZLONG-4 + srli a0, a0, __riscv_xlen - 4 li a1, 2 bne a0, a1, pass