From 8d33dc364ff4daa2695fa35e8dface0e13f61271 Mon Sep 17 00:00:00 2001 From: Rasmus Pedersen Date: Fri, 30 Jun 2023 13:44:31 +0200 Subject: [PATCH] Only add "cpu PC " if opensbi is present --- litex/tools/litex_json2renode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 += """