summaryrefslogtreecommitdiff
path: root/v/riscv_test.h
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2015-03-16 02:09:10 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2015-03-16 02:09:10 -0700
commitbe6511639c2d9291e9050682c4d7ce3e7042d061 (patch)
tree525ce2fef82e9a0c5bbdd52066e57f3cc4f843f9 /v/riscv_test.h
parent4ea6feac5fe663fe82de53632883ced6205f57f8 (diff)
downloadenv-be6511639c2d9291e9050682c4d7ce3e7042d061.zip
env-be6511639c2d9291e9050682c4d7ce3e7042d061.tar.gz
env-be6511639c2d9291e9050682c4d7ce3e7042d061.tar.bz2
clean up pt and vector environments
Diffstat (limited to 'v/riscv_test.h')
-rw-r--r--v/riscv_test.h6
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)); })