diff options
author | Howard Mao <zhehao.mao@gmail.com> | 2015-09-28 13:48:35 -0700 |
---|---|---|
committer | Howard Mao <zhehao.mao@gmail.com> | 2015-09-28 13:49:09 -0700 |
commit | 8af67ec78dd2b47731cd86990cbb3cc8f1b304e8 (patch) | |
tree | 4c6bff9a0cb30b81f32e1a9d6abea67ea457de1b /p/riscv_test.h | |
parent | 0bf56e2156ad5393ec2997e4f3dfba98778e8f1f (diff) | |
download | env-8af67ec78dd2b47731cd86990cbb3cc8f1b304e8.zip env-8af67ec78dd2b47731cd86990cbb3cc8f1b304e8.tar.gz env-8af67ec78dd2b47731cd86990cbb3cc8f1b304e8.tar.bz2 |
make sure TESTNUM is initialized
Diffstat (limited to 'p/riscv_test.h')
-rw-r--r-- | p/riscv_test.h | 1 |
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; \ |