arch: Remove copyMiscRegs from utility.hh.

This function is occasionally used internally in copyRegs, but is not
used by anything else and doesn't need to be publically exposed in the
header file.

Change-Id: Id02a77e7dd19c6c089a408bfe0099466822c523d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39325
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2021-01-18 01:47:53 -08:00
parent 352ce704f1
commit 0a9dfbb8da
7 changed files with 3 additions and 25 deletions

View File

@@ -87,12 +87,6 @@ testPredicate(uint32_t nz, uint32_t c, uint32_t v, ConditionCode code)
void copyRegs(ThreadContext *src, ThreadContext *dest);
static inline void
copyMiscRegs(ThreadContext *src, ThreadContext *dest)
{
panic("Copy Misc. Regs Not Implemented Yet\n");
}
/** Send an event (SEV) to a specific PE if there isn't
* already a pending event */
void sendEvent(ThreadContext *tc);

View File

@@ -224,10 +224,4 @@ copyRegs(ThreadContext *src, ThreadContext *dest)
dest->pcState(src->pcState());
}
void
copyMiscRegs(ThreadContext *src, ThreadContext *dest)
{
panic("Copy Misc. Regs Not Implemented Yet\n");
}
} // namespace MipsISA

View File

@@ -73,7 +73,6 @@ RoundPage(Addr addr)
}
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
inline void
advancePC(PCState &pc, const StaticInstPtr &inst)

View File

@@ -32,7 +32,8 @@
#include "base/logging.hh"
namespace PowerISA {
namespace PowerISA
{
void
copyRegs(ThreadContext *src, ThreadContext *dest)
@@ -45,8 +46,7 @@ copyRegs(ThreadContext *src, ThreadContext *dest)
for (int i = 0; i < NumFloatRegs; ++i)
dest->setFloatReg(i, src->readFloatReg(i));
// Copy misc. registers
copyMiscRegs(src, dest);
//TODO Copy misc. registers.
// Lastly copy PC/NPC
dest->pcState(src->pcState());

View File

@@ -39,11 +39,6 @@ namespace PowerISA {
void copyRegs(ThreadContext *src, ThreadContext *dest);
static inline void
copyMiscRegs(ThreadContext *src, ThreadContext *dest)
{
}
inline void
advancePC(PCState &pc, const StaticInstPtr &inst)
{

View File

@@ -43,8 +43,6 @@ namespace SparcISA
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
inline void
advancePC(PCState &pc, const StaticInstPtr &inst)
{

View File

@@ -46,8 +46,6 @@ namespace X86ISA
{
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
inline void
advancePC(PCState &pc, const StaticInstPtr &inst)
{