config: Change parsing of Addr so hex values work from scripts
Review Request #2292 - Created June 12, 2014 and submitted
| Information | |
|---|---|
| Ali Saidi | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10295:9a15d64f7738 --------------------------- 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.
Posted (June 19, 2014, 7:36 p.m.)
Why is Addr being parsed using toMemorySize() in the first place? That seems wrong. At least some of the places Addr is used with a size (like RealView.max_mem_size), I think the problem is that the param should really be a Param.MemorySize to begin with.
Review request changed
Updated (Aug. 22, 2014, 5:25 a.m.)
Summary: |
|
||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+11 -3) |
Looks great, thanks!
