[VENTUS][RISCV][fix] Moving 'tohost' and 'fromhost' from section 'tohost' to '.data'

We change this because we find function jump bugs in rodinia GPU test
This commit is contained in:
zhoujing 2023-07-10 09:12:02 +08:00
parent 4c099fb3d5
commit 1bfef21c65
1 changed files with 7 additions and 9 deletions

View File

@ -24,6 +24,13 @@ BUFFER_ADDR:
BUFFER_SIZE:
.word 0
.align 6
.global tohost
tohost: .dword 0
.align 6
.global fromhost
fromhost: .dword 0
.text
.global _start
.type _start, @function
@ -77,15 +84,6 @@ _start:
j spike_end
.size _start, .-_start
.section ".tohost","aw",@progbits
.align 6
.globl tohost
tohost: .dword 0
.align 6
.globl fromhost
fromhost: .dword 0
.global spike_end
.type spike_end,function
spike_end: