Skip to content

Commit

Permalink
multicore_tests: fix scripts and stack setup
Browse files Browse the repository at this point in the history
  • Loading branch information
devins2518 committed Dec 24, 2024
1 parent d6696a3 commit 1cc730e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion verification/multicore-tests/c-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e

./build_all.py
../../../rvb_out/sim-verilator/Vtop_core $1.bin
../../../rvb_out/socet_riscv_RISCVBusiness_0.1.1/sim-verilator/Vtop_core $1.bin
6 changes: 3 additions & 3 deletions verification/multicore-tests/c-tests/start.S
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ wait_for_bss_cleared:
beqz t0, wait_for_bss_cleared

start:
# Get a 2kB stack starting at 0x8000F000
li sp, 0x8000F000
slli t0, s0, 11
# Get a 16kB stack
la sp, __stack_top
slli t0, s0, 14
add sp, sp, t0
# Calculate which main to call
# IMPORTANT: hart1_main *must* set hart1_done to 1
Expand Down

0 comments on commit 1cc730e

Please sign in to comment.