Skip to content

Commit 50d501a

Browse files
authored
Merge pull request #1387 from yanzhang-dev/yanzhang/bug-fix
Add misaligned memory access for spike.
2 parents ffe927a + 72a1fc0 commit 50d501a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/wrapper/spike/riscv64-unknown-linux-gnu-run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ varch="$(march-to-cpu-opt --elf-file-path $1 --print-spike-varch)"
66

77
isa_option="--isa=${isa}"
88
varch_option=""
9+
memory_option="--misaligned"
910

1011
[[ ! -z ${varch} ]] && varch_option="--varch=${varch}"
1112

12-
spike ${isa_option} ${varch_option} ${PK_PATH}/pk${xlen} "$@"
13+
spike ${memory_option} ${isa_option} ${varch_option} ${PK_PATH}/pk${xlen} "$@"

0 commit comments

Comments
 (0)