summaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
Diffstat (limited to 'p')
-rw-r--r--p/riscv_test.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index a08f49e..fe14f08 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -190,6 +190,7 @@ handle_exception: \
1: ori TESTNUM, TESTNUM, 1337; \
write_tohost: \
sw TESTNUM, tohost, t5; \
+ sw zero, tohost + 4, t5; \
j write_tohost; \
reset_vector: \
INIT_XREG; \
@@ -259,8 +260,8 @@ reset_vector: \
#define RVTEST_DATA_BEGIN \
EXTRA_DATA \
.pushsection .tohost,"aw",@progbits; \
- .align 6; .global tohost; tohost: .dword 0; \
- .align 6; .global fromhost; fromhost: .dword 0; \
+ .align 6; .global tohost; tohost: .dword 0; .size tohost, 8; \
+ .align 6; .global fromhost; fromhost: .dword 0; .size fromhost, 8;\
.popsection; \
.align 4; .global begin_signature; begin_signature: