diff options
Diffstat (limited to 'v/riscv_test.h')
-rw-r--r-- | v/riscv_test.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/v/riscv_test.h b/v/riscv_test.h index 30dd124..e076794 100644 --- a/v/riscv_test.h +++ b/v/riscv_test.h @@ -14,7 +14,7 @@ #undef RVTEST_RV64UV #define RVTEST_RV64UV \ - RVTEST_RV64UF + RVTEST_RV64UF #undef RVTEST_CODE_BEGIN #define RVTEST_CODE_BEGIN \ @@ -60,8 +60,8 @@ userstart: \ #define vxcptkill() ({ \ asm volatile ("vxcptkill"); }) -#define vxcpthold() ({ \ - asm volatile ("vxcpthold"); }) +#define vxcpthold(addr) ({ \ + asm volatile ("vxcpthold %0" : : "r"(addr)); }) #define venqcmd(bits, pf) ({ \ asm volatile ("venqcmd %0,%1" : : "r"(bits), "r"(pf)); }) |