cpu: De-templatize the FullO3CPU class.

Change-Id: Ib7f1e40447a2f5a49e0c9a3af8579d075d5d3625
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/42117
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nathanael Premillieu <nathanael.premillieu@huawei.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
This commit is contained in:
Gabe Black
2021-03-03 05:00:33 -08:00
parent 4ba06c8f25
commit fda2e46a9e
29 changed files with 210 additions and 337 deletions

View File

@@ -129,7 +129,7 @@ class DefaultCommit
public:
/** Construct a DefaultCommit with the given parameters. */
DefaultCommit(FullO3CPU<O3CPUImpl> *_cpu, const DerivO3CPUParams &params);
DefaultCommit(FullO3CPU *_cpu, const DerivO3CPUParams &params);
/** Returns the name of the DefaultCommit. */
std::string name() const;
@@ -350,7 +350,7 @@ class DefaultCommit
private:
/** Pointer to O3CPU. */
FullO3CPU<O3CPUImpl> *cpu;
FullO3CPU *cpu;
/** Vector of all of the threads. */
std::vector<Thread *> thread;
@@ -470,7 +470,7 @@ class DefaultCommit
struct CommitStats : public Stats::Group
{
CommitStats(FullO3CPU<O3CPUImpl> *cpu, DefaultCommit *commit);
CommitStats(FullO3CPU *cpu, DefaultCommit *commit);
/** Stat for the total number of squashed instructions discarded by
* commit.
*/