mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Assume cpu count 1 if not present
This commit is contained in:
parent
8d33dc364f
commit
26ed13a300
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ def get_cpu_type(csr):
|
|||
return (kind, variant)
|
||||
|
||||
def get_cpu_count(csr):
|
||||
return csr['constants']['config_cpu_count']
|
||||
return csr['constants'].get('config_cpu_count', 1)
|
||||
|
||||
vexriscv_common_kind = {
|
||||
'name': 'VexRiscv',
|
||||
|
|
Loading…
Reference in a new issue