Skip to content

Commit

Permalink
vcu118-run.py: Make sure to switch to thread before setting PC
Browse files Browse the repository at this point in the history
Fixes: 2a62a6c ("vcu118-run.py: Adapt to accommodate GDB/cheri-14")
  • Loading branch information
jrtc27 committed Sep 13, 2024
1 parent 114e70e commit a24af43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vcu118-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def load_and_start_kernel(
if num_cores > 1:
args += ["-ex", "set $entry_point = $pc"] # Record the entry point to the bios
for core in range(1, num_cores):
args += ["-ex", f"thread {core + 1:d}"] # switch to thread (core + 1) (GDB counts from 1)
args += ["-ex", "set $pc=$entry_point"] # set every other core to the start of the bios
args += ["-ex", "thread 1"] # switch back to core 0
if extra_gdb_commands is not None:
Expand Down

0 comments on commit a24af43

Please sign in to comment.