From be6511639c2d9291e9050682c4d7ce3e7042d061 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Mon, 16 Mar 2015 02:09:10 -0700 Subject: clean up pt and vector environments --- v/riscv_test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'v/riscv_test.h') 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)); }) -- cgit v1.1