From: Brandon Potter Date: Thu, 8 Aug 2019 18:15:50 +0000 (-0400) Subject: sim-se: remove unused parameter X-Git-Tag: v19.0.0.0~681 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29082ef5cec7640977907ea540659e895f8ca164;p=gem5.git 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 Maintainer: Jason Lowe-Power Tested-by: kokoro --- 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