Skip to content

Commit a24af43

Browse files
committed
vcu118-run.py: Make sure to switch to thread before setting PC
Fixes: 2a62a6c ("vcu118-run.py: Adapt to accommodate GDB/cheri-14")
1 parent 114e70e commit a24af43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vcu118-run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ def load_and_start_kernel(
376376
if num_cores > 1:
377377
args += ["-ex", "set $entry_point = $pc"] # Record the entry point to the bios
378378
for core in range(1, num_cores):
379+
args += ["-ex", f"thread {core + 1:d}"] # switch to thread (core + 1) (GDB counts from 1)
379380
args += ["-ex", "set $pc=$entry_point"] # set every other core to the start of the bios
380381
args += ["-ex", "thread 1"] # switch back to core 0
381382
if extra_gdb_commands is not None:

0 commit comments

Comments
 (0)