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>
diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh
index b210fea..dfc9524 100644
--- a/src/cpu/checker/thread_context.hh
+++ b/src/cpu/checker/thread_context.hh
@@ -335,13 +335,6 @@
     }
 
     void
-    setNPC(Addr val)
-    {
-        checkerTC->setNPC(val);
-        actualTC->setNPC(val);
-    }
-
-    void
     pcStateNoRecord(const PCStateBase &val) override
     {
         return actualTC->pcState(val);
diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh
index 9e4d495..07eb7bb 100644
--- a/src/cpu/thread_context.hh
+++ b/src/cpu/thread_context.hh
@@ -233,14 +233,6 @@
         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;