aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64si/ma_fetch.S
diff options
context:
space:
mode:
authorRichard Xia <richardxia@richardxia.com>2017-10-30 12:18:49 -0700
committerAndrew Waterman <aswaterman@gmail.com>2017-10-30 12:18:49 -0700
commitdc87148473bc407d91ab8b4a6e69f7eade79bfa0 (patch)
treee4ca30bc50eff28ffcda085454c336068a3b5b96 /isa/rv64si/ma_fetch.S
parent7b4922e130bb520f9328dca77cf7330df96ce2f9 (diff)
downloadriscv-tests-dc87148473bc407d91ab8b4a6e69f7eade79bfa0.zip
riscv-tests-dc87148473bc407d91ab8b4a6e69f7eade79bfa0.tar.gz
riscv-tests-dc87148473bc407d91ab8b4a6e69f7eade79bfa0.tar.bz2
Declare trap handlers as global symbols. (#87)
This allows them to be referenced by other files, such as a test environment that lives in a separate compilation unit.
Diffstat (limited to 'isa/rv64si/ma_fetch.S')
-rw-r--r--isa/rv64si/ma_fetch.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/isa/rv64si/ma_fetch.S b/isa/rv64si/ma_fetch.S
index eb50f94..5943456 100644
--- a/isa/rv64si/ma_fetch.S
+++ b/isa/rv64si/ma_fetch.S
@@ -110,6 +110,7 @@ RVTEST_CODE_BEGIN
TEST_PASSFAIL
.align 2
+ .global stvec_handler
stvec_handler:
# tests 2, 4, 5, and 6 should trap
li a0, 2