Only add "cpu PC <opensbi_base>" if opensbi is present
This commit is contained in:
parent
a12703b4ee
commit
8d33dc364f
|
@ -889,6 +889,7 @@ showAnalyzer sysbus.uart Antmicro.Renode.Analyzers.LoggingUartAnalyzer
|
||||||
sysbus LoadBinary @{} {}
|
sysbus LoadBinary @{} {}
|
||||||
""".format(args.bios_binary, hex(opensbi_base))
|
""".format(args.bios_binary, hex(opensbi_base))
|
||||||
|
|
||||||
|
if opensbi_base:
|
||||||
for cpu_id in range(0, number_of_cores):
|
for cpu_id in range(0, number_of_cores):
|
||||||
result += f"cpu{cpu_id} PC {hex(opensbi_base)}\n"
|
result += f"cpu{cpu_id} PC {hex(opensbi_base)}\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue