Skip to content

Commit

Permalink
Generate memory regions size in hex
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-holenko committed Oct 17, 2019
1 parent f010339 commit 3a1f7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate-renode-scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def generate_memory_region(region_descriptor, shadow_base):
""".format(region_descriptor['name'],
generate_sysbus_registration(int(region_descriptor['address'], 0),
shadow_base),
region_descriptor['size'])
hex(size))


def generate_silencer(peripheral, shadow_base, **kwargs):
Expand Down Expand Up @@ -260,7 +260,7 @@ def generate_spiflash(peripheral, shadow_base, **kwargs):
generate_sysbus_registration(int(peripheral['address'], 0),
shadow_base, skip_braces=True),
generate_sysbus_registration(xip_base, shadow_base, skip_braces=True),
flash_size)
hex(flash_size))

return result

Expand Down

0 comments on commit 3a1f7c8

Please sign in to comment.