diff options
author | Mitch Hayenga <mitch.hayenga@arm.com> | 2014-09-03 07:42:20 -0400 |
---|---|---|
committer | Mitch Hayenga <mitch.hayenga@arm.com> | 2014-09-03 07:42:20 -0400 |
commit | 23c85407562c3e2e2f3e1ca8b8dcbdc38fac82df (patch) | |
tree | 3fa6f9e37df77a4ae3fbe0f8358c7a38b57aa205 /src/arch | |
parent | 1046b8d6e5303fa4fede2d7c0712ef0719c82eb7 (diff) | |
download | gem5-23c85407562c3e2e2f3e1ca8b8dcbdc38fac82df.tar.xz |
config: Change parsing of Addr so hex values work from scripts
When passed from a configuration script with a hexadecimal value (like
"0x80000000"), gem5 would error out. This is because it would call
"toMemorySize" which requires the argument to end with a size specifier (like
1MB, etc).
This modification makes it so raw hex values can be passed through Addr
parameters from the configuration scripts.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/arm/ArmSystem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/arm/ArmSystem.py b/src/arch/arm/ArmSystem.py index 39b7ec8ff..a803a251b 100644 --- a/src/arch/arm/ArmSystem.py +++ b/src/arch/arm/ArmSystem.py @@ -65,7 +65,7 @@ class ArmSystem(System): highest_el_is_64 = Param.Bool(False, "True if the register width of the highest implemented exception level " "is 64 bits (ARMv8)") - reset_addr_64 = Param.UInt64(0x0, + reset_addr_64 = Param.Addr(0x0, "Reset address if the highest implemented exception level is 64 bits " "(ARMv8)") phys_addr_range_64 = Param.UInt8(40, |