Assume cpu count 1 if not present

This commit is contained in:
Rasmus Pedersen 2023-06-30 13:45:40 +02:00
parent 8d33dc364f
commit 26ed13a300
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ def get_cpu_type(csr):
return (kind, variant) return (kind, variant)
def get_cpu_count(csr): def get_cpu_count(csr):
return csr['constants']['config_cpu_count'] return csr['constants'].get('config_cpu_count', 1)
vexriscv_common_kind = { vexriscv_common_kind = {
'name': 'VexRiscv', 'name': 'VexRiscv',