diff --git a/litex/tools/litex_json2renode.py b/litex/tools/litex_json2renode.py index 6259b6d40..61bd82f04 100755 --- a/litex/tools/litex_json2renode.py +++ b/litex/tools/litex_json2renode.py @@ -889,8 +889,9 @@ showAnalyzer sysbus.uart Antmicro.Renode.Analyzers.LoggingUartAnalyzer sysbus LoadBinary @{} {} """.format(args.bios_binary, hex(opensbi_base)) - for cpu_id in range(0, number_of_cores): - result += f"cpu{cpu_id} PC {hex(opensbi_base)}\n" + if opensbi_base: + for cpu_id in range(0, number_of_cores): + result += f"cpu{cpu_id} PC {hex(opensbi_base)}\n" if args.tftp_ip: result += """