summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Mao <zhehao.mao@gmail.com>2015-09-28 13:48:35 -0700
committerHoward Mao <zhehao.mao@gmail.com>2015-09-28 13:49:09 -0700
commit8af67ec78dd2b47731cd86990cbb3cc8f1b304e8 (patch)
tree4c6bff9a0cb30b81f32e1a9d6abea67ea457de1b
parent0bf56e2156ad5393ec2997e4f3dfba98778e8f1f (diff)
downloadenv-8af67ec78dd2b47731cd86990cbb3cc8f1b304e8.zip
env-8af67ec78dd2b47731cd86990cbb3cc8f1b304e8.tar.gz
env-8af67ec78dd2b47731cd86990cbb3cc8f1b304e8.tar.bz2
make sure TESTNUM is initialized
-rw-r--r--p/riscv_test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index 6e35b18..1cd0f4b 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -131,6 +131,7 @@ tvec_machine: \
_start: \
RISCV_MULTICORE_DISABLE; \
CHECK_XLEN; \
+ li TESTNUM, 0; \
la t0, stvec_handler; \
beqz t0, 1f; \
csrw stvec, t0; \