Only add "cpu PC <opensbi_base>" if opensbi is present

This commit is contained in:
Rasmus Pedersen 2023-06-30 13:44:31 +02:00
parent a12703b4ee
commit 8d33dc364f
1 changed files with 3 additions and 2 deletions

View File

@ -889,6 +889,7 @@ showAnalyzer sysbus.uart Antmicro.Renode.Analyzers.LoggingUartAnalyzer
sysbus LoadBinary @{} {}
""".format(args.bios_binary, hex(opensbi_base))
if opensbi_base:
for cpu_id in range(0, number_of_cores):
result += f"cpu{cpu_id} PC {hex(opensbi_base)}\n"