summaryrefslogtreecommitdiff
path: root/v/riscv_test.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-03-14 16:56:34 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-03-14 16:56:34 -0700
commitef1457fa7a3bf3fd58dadd0f30002828b353e573 (patch)
treed17883848be632baa085628399176c116bb85cd1 /v/riscv_test.h
parentb7528b89c8673bf38e5e4ec1e8f037ec2bcbee24 (diff)
downloadenv-ef1457fa7a3bf3fd58dadd0f30002828b353e573.zip
env-ef1457fa7a3bf3fd58dadd0f30002828b353e573.tar.gz
env-ef1457fa7a3bf3fd58dadd0f30002828b353e573.tar.bz2
Support RV32 virtual memory testspriv-1.9
Diffstat (limited to 'v/riscv_test.h')
-rw-r--r--v/riscv_test.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/v/riscv_test.h b/v/riscv_test.h
index 6734713..4e9210a 100644
--- a/v/riscv_test.h
+++ b/v/riscv_test.h
@@ -50,7 +50,11 @@ userstart: \
#define PGSHIFT 12
#define PGSIZE (1UL << PGSHIFT)
-#define SIZEOF_TRAPFRAME_T 288
+#ifdef __riscv64
+# define SIZEOF_TRAPFRAME_T 288
+#else
+# define SIZEOF_TRAPFRAME_T 144
+#endif
#ifndef __ASSEMBLER__