From 2ca49044bdffd806ae306036551849c59997b7d2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 15 Oct 2021 20:46:12 -0700 Subject: [PATCH] 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 Reviewed-by: Daniel Carvalho Maintainer: Gabe Black --- src/cpu/checker/thread_context.hh | 7 ------- src/cpu/thread_context.hh | 8 -------- 2 files changed, 15 deletions(-) diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh index b210feaad9..dfc952472a 100644 --- a/src/cpu/checker/thread_context.hh +++ b/src/cpu/checker/thread_context.hh @@ -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 { diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh index 9e4d4956b6..07eb7bbe15 100644 --- a/src/cpu/thread_context.hh +++ b/src/cpu/thread_context.hh @@ -233,14 +233,6 @@ class ThreadContext : public PCEventScope pcState(*new_pc); } - void - setNPC(Addr val) - { - std::unique_ptr pc_state(pcState().clone()); - pc_state->as().setNPC(val); - pcState(*pc_state); - } - virtual void pcStateNoRecord(const PCStateBase &val) = 0; virtual Addr instAddr() const = 0;