diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2019-01-03 17:54:09 +0000 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2019-01-17 11:09:08 +0000 |
commit | 6825ef194102603831165ae1b1cf86b7c2556d93 (patch) | |
tree | 109f88b576cf4ffae962271e0a5d4299ae2b720d /src/cpu/o3/O3CPU.py | |
parent | 7b4e441c35e6f3d11b050fb0d6aff7919f10d953 (diff) | |
download | gem5-6825ef194102603831165ae1b1cf86b7c2556d93.tar.xz |
cpu-o3: Make the smtIQPolicy a Param.ScopedEnum
The smtIQPolicy is a parameter in the o3 cpu that can have 3
different values. Previously this setting was done through a string
and a parser function would turn it into a c++ enum value. This
changeset turns the string into a python Param.ScopedEnum.
Change-Id: Ieecf0a19427dd250b0d5ae3d531ab46a37326ae5
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15398
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/o3/O3CPU.py')
-rw-r--r-- | src/cpu/o3/O3CPU.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/o3/O3CPU.py b/src/cpu/o3/O3CPU.py index 02d56de92..5908260f5 100644 --- a/src/cpu/o3/O3CPU.py +++ b/src/cpu/o3/O3CPU.py @@ -157,7 +157,8 @@ class DerivO3CPU(BaseCPU): smtLSQPolicy = Param.SMTQueuePolicy('Partitioned', "SMT LSQ Sharing Policy") smtLSQThreshold = Param.Int(100, "SMT LSQ Threshold Sharing Parameter") - smtIQPolicy = Param.String('Partitioned', "SMT IQ Sharing Policy") + smtIQPolicy = Param.SMTQueuePolicy('Partitioned', + "SMT IQ Sharing Policy") smtIQThreshold = Param.Int(100, "SMT IQ Threshold Sharing Parameter") smtROBPolicy = Param.String('Partitioned', "SMT ROB Sharing Policy") smtROBThreshold = Param.Int(100, "SMT ROB Threshold Sharing Parameter") |