Skip to content

Commit

Permalink
Merge pull request #1387 from yanzhang-dev/yanzhang/bug-fix
Browse files Browse the repository at this point in the history
Add misaligned memory access for spike.
  • Loading branch information
kito-cheng authored Dec 11, 2023
2 parents ffe927a + 72a1fc0 commit 50d501a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/wrapper/spike/riscv64-unknown-linux-gnu-run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ varch="$(march-to-cpu-opt --elf-file-path $1 --print-spike-varch)"

isa_option="--isa=${isa}"
varch_option=""
memory_option="--misaligned"

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

spike ${isa_option} ${varch_option} ${PK_PATH}/pk${xlen} "$@"
spike ${memory_option} ${isa_option} ${varch_option} ${PK_PATH}/pk${xlen} "$@"

0 comments on commit 50d501a

Please sign in to comment.