From 150104648f713fcf45a1ea423468948d1dc509fc Mon Sep 17 00:00:00 2001 From: Giacomo Gabrielli Date: Thu, 14 Feb 2019 17:39:37 +0000 Subject: cpu: Add ISA* getter in Thread interface This patch is adding a ISA* getter to the TC interface Change-Id: Ib8ddc5d8fdd44e782f50a2ad15878a6bcf931e58 Reviewed-on: https://gem5-review.googlesource.com/c/16462 Reviewed-by: Andreas Sandberg Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez --- src/cpu/o3/thread_context.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cpu/o3') diff --git a/src/cpu/o3/thread_context.hh b/src/cpu/o3/thread_context.hh index 022e71291..374ef377d 100644 --- a/src/cpu/o3/thread_context.hh +++ b/src/cpu/o3/thread_context.hh @@ -86,6 +86,12 @@ class O3ThreadContext : public ThreadContext CheckerCPU *getCheckerCpuPtr() override { return NULL; } + TheISA::ISA * + getIsaPtr() override + { + return cpu->isa[thread->threadId()]; + } + TheISA::Decoder * getDecoderPtr() override { -- cgit v1.2.3