cpu: Eliminate the ThreadContext::setNPC method.

It is no longer used.

Change-Id: Ic0526097550b109455cb09707e712775a0be56c4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52060
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabe.black@gmail.com>
This commit is contained in:
Gabe Black
2021-10-15 20:46:12 -07:00
parent e12120372c
commit 2ca49044bd
2 changed files with 0 additions and 15 deletions

View File

@@ -334,13 +334,6 @@ class CheckerThreadContext : public ThreadContext
return actualTC->pcState(val);
}
void
setNPC(Addr val)
{
checkerTC->setNPC(val);
actualTC->setNPC(val);
}
void
pcStateNoRecord(const PCStateBase &val) override
{

View File

@@ -233,14 +233,6 @@ class ThreadContext : public PCEventScope
pcState(*new_pc);
}
void
setNPC(Addr val)
{
std::unique_ptr<PCStateBase> pc_state(pcState().clone());
pc_state->as<TheISA::PCState>().setNPC(val);
pcState(*pc_state);
}
virtual void pcStateNoRecord(const PCStateBase &val) = 0;
virtual Addr instAddr() const = 0;