From 6825ef194102603831165ae1b1cf86b7c2556d93 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Thu, 3 Jan 2019 17:54:09 +0000 Subject: 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 Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/15398 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/cpu/o3/inst_queue.hh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/cpu/o3/inst_queue.hh') diff --git a/src/cpu/o3/inst_queue.hh b/src/cpu/o3/inst_queue.hh index 37cc3a2bb..d6bc654df 100644 --- a/src/cpu/o3/inst_queue.hh +++ b/src/cpu/o3/inst_queue.hh @@ -55,6 +55,7 @@ #include "cpu/inst_seq.hh" #include "cpu/op_class.hh" #include "cpu/timebuf.hh" +#include "enums/SMTQueuePolicy.hh" #include "sim/eventq.hh" struct DerivO3CPUParams; @@ -403,15 +404,8 @@ class InstructionQueue // Various parameters ////////////////////////////////////// - /** IQ Resource Sharing Policy */ - enum IQPolicy { - Dynamic, - Partitioned, - Threshold - }; - /** IQ sharing policy for SMT. */ - IQPolicy iqPolicy; + SMTQueuePolicy iqPolicy; /** Number of Total Threads*/ ThreadID numThreads; -- cgit v1.2.3