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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user