From 1bfef21c655d0aeb5ef3e5b7229e49bc88ccb443 Mon Sep 17 00:00:00 2001 From: zhoujing Date: Mon, 10 Jul 2023 09:12:02 +0800 Subject: [PATCH] [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 --- libclc/riscv32/lib/crt0.S | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/libclc/riscv32/lib/crt0.S b/libclc/riscv32/lib/crt0.S index 685ad6e55a84..b3e53e878df1 100644 --- a/libclc/riscv32/lib/crt0.S +++ b/libclc/riscv32/lib/crt0.S @@ -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: