Skip to content

Commit

Permalink
Change VexRiscv configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-holenko committed Jul 15, 2019
1 parent f799d28 commit ab22e8f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions generate-renode-scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,23 @@ def generate_cpu(time_provider):
string: repl definition of the CPU
"""
kind = constants['config_cpu_type']['value']
if 'config_cpu_variant' in constants:
variant = constants['config_cpu_variant']['value']
else:
variant = None

if kind == 'VEXRISCV':
result = """
cpu: CPU.VexRiscv @ sysbus
"""
if variant == 'LINUX':
result += """
cpuType: "rv32ima"
privilegeArchitecture: PrivilegeArchitecture.Priv1_10
"""
else:
result += """
cpuType: "rv32im"
"""
if time_provider:
result += """
Expand Down

0 comments on commit ab22e8f

Please sign in to comment.