mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
litex_json2renode: only add cpu timeProvider if time_provider exists
This commit is contained in:
parent
648c70de82
commit
a12703b4ee
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ def generate_cpu(csr, time_provider, number_of_cores):
|
|||
cpu{cpu_id}: CPU.{cpu_string.strip()}
|
||||
hartId: {cpu_id}
|
||||
"""
|
||||
if cpu.get('supports_time_provider', False):
|
||||
if cpu.get('supports_time_provider', False) and time_provider:
|
||||
result += f' timeProvider: {time_provider}\n'
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue