From 1e9f65343c79b2c3b081e785cfec070d25292be7 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Thu, 3 Jan 2019 19:01:04 +0000 Subject: cpu-o3: Make the smtCommitPolicy a Param.ScopedEnum The smtCommitPolicy 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: I3625f2c08a1ae0c3b0dce7a641c6ae1ce3fd79a5 Signed-off-by: Nikos Nikoleris Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/15400 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/cpu/o3/commit.hh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/cpu/o3/commit.hh') diff --git a/src/cpu/o3/commit.hh b/src/cpu/o3/commit.hh index b74917da3..2d7a23e5d 100644 --- a/src/cpu/o3/commit.hh +++ b/src/cpu/o3/commit.hh @@ -50,6 +50,7 @@ #include "cpu/exetrace.hh" #include "cpu/inst_seq.hh" #include "cpu/timebuf.hh" +#include "enums/CommitPolicy.hh" #include "sim/probe/probe.hh" struct DerivO3CPUParams; @@ -119,13 +120,6 @@ class DefaultCommit SquashAfterPending, //< Committing instructions before a squash. }; - /** Commit policy for SMT mode. */ - enum CommitPolicy { - Aggressive, - RoundRobin, - OldestReady - }; - private: /** Overall commit status. */ CommitStatus _status; -- cgit v1.2.3