diff --git a/src/arch/arm/fastmodel/iris/thread_context.hh b/src/arch/arm/fastmodel/iris/thread_context.hh index 5d6827cc9c..5590f7fd27 100644 --- a/src/arch/arm/fastmodel/iris/thread_context.hh +++ b/src/arch/arm/fastmodel/iris/thread_context.hh @@ -209,7 +209,7 @@ class ThreadContext : public ::ThreadContext System *getSystemPtr() override { return _cpu->system; } - ArmISA::ISA * + BaseISA * getIsaPtr() override { panic("%s not implemented.", __FUNCTION__); diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh index 0fb75562a5..e01a00d379 100644 --- a/src/cpu/checker/thread_context.hh +++ b/src/cpu/checker/thread_context.hh @@ -142,7 +142,7 @@ class CheckerThreadContext : public ThreadContext return checkerCPU; } - TheISA::ISA *getIsaPtr() override { return actualTC->getIsaPtr(); } + BaseISA *getIsaPtr() override { return actualTC->getIsaPtr(); } TheISA::Decoder * getDecoderPtr() override diff --git a/src/cpu/o3/thread_context.hh b/src/cpu/o3/thread_context.hh index a01c054139..9607f730f0 100644 --- a/src/cpu/o3/thread_context.hh +++ b/src/cpu/o3/thread_context.hh @@ -113,7 +113,7 @@ class O3ThreadContext : public ThreadContext CheckerCPU *getCheckerCpuPtr() override { return NULL; } - TheISA::ISA * + BaseISA * getIsaPtr() override { return cpu->isa[thread->threadId()]; diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh index b4afcbbc84..fabcbb83ba 100644 --- a/src/cpu/simple_thread.hh +++ b/src/cpu/simple_thread.hh @@ -230,7 +230,7 @@ class SimpleThread : public ThreadState, public ThreadContext CheckerCPU *getCheckerCpuPtr() override { return NULL; } - TheISA::ISA *getIsaPtr() override { return isa; } + BaseISA *getIsaPtr() override { return isa; } TheISA::Decoder *getDecoderPtr() override { return &decoder; } diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh index c14161d6f2..fcf39f9326 100644 --- a/src/cpu/thread_context.hh +++ b/src/cpu/thread_context.hh @@ -47,6 +47,7 @@ #include #include +#include "arch/generic/isa.hh" #include "arch/registers.hh" #include "arch/types.hh" #include "base/types.hh" @@ -141,7 +142,7 @@ class ThreadContext : public PCEventScope virtual CheckerCPU *getCheckerCpuPtr() = 0; - virtual TheISA::ISA *getIsaPtr() = 0; + virtual BaseISA *getIsaPtr() = 0; virtual TheISA::Decoder *getDecoderPtr() = 0;