diff options
author | Brandon Potter <brandon.potter@amd.com> | 2019-08-08 14:15:50 -0400 |
---|---|---|
committer | Brandon Potter <Brandon.Potter@amd.com> | 2019-08-09 01:41:43 +0000 |
commit | 29082ef5cec7640977907ea540659e895f8ca164 (patch) | |
tree | 4c8ffb6ca53d441b81a306b9e045405eba840154 | |
parent | 77f7cc489efac6df93316fe4dc434f860f971a3e (diff) | |
download | gem5-29082ef5cec7640977907ea540659e895f8ca164.tar.xz |
sim-se: remove unused parameter
The init function which processes invoke on their page tables
has a thread context pointer parameter. The parameter is not
used by the code so remove it.
Change-Id: Ic4766fbc105d81c1c9ee4b5c0f428497dff2ab30
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19948
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r-- | src/mem/multi_level_page_table.hh | 2 | ||||
-rw-r--r-- | src/mem/page_table.hh | 2 | ||||
-rw-r--r-- | src/sim/process.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/multi_level_page_table.hh b/src/mem/multi_level_page_table.hh index f517eafe8..df0d785b3 100644 --- a/src/mem/multi_level_page_table.hh +++ b/src/mem/multi_level_page_table.hh @@ -202,7 +202,7 @@ public: ~MultiLevelPageTable() {} void - initState(ThreadContext* tc) override + initState() override { if (shared) return; diff --git a/src/mem/page_table.hh b/src/mem/page_table.hh index 03e18c2d0..9d2e3e3d6 100644 --- a/src/mem/page_table.hh +++ b/src/mem/page_table.hh @@ -99,7 +99,7 @@ class EmulationPageTable : public Serializable // flag which marks the page table as shared among software threads bool shared; - virtual void initState(ThreadContext* tc) {}; + virtual void initState() {}; // for DPRINTF compatibility const std::string name() const { return _name; } diff --git a/src/sim/process.cc b/src/sim/process.cc index 3a39dbe50..735933d01 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -282,7 +282,7 @@ Process::initState() // mark this context as active so it will start ticking. tc->activate(); - pTable->initState(tc); + pTable->initState(); } DrainState |