fastmodel: Return nullptr from getCheckerCpuPtr on fast model CPUs.
authorGabe Black <gabeblack@google.com>
Sat, 1 Feb 2020 10:27:16 +0000 (02:27 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 20 Feb 2020 03:37:25 +0000 (03:37 +0000)
Fast model CPUs won't (at least as of now) have a checker CPU attached
to them. We can safely return nullptr to signal that to calling code.

Change-Id: I7edd4f895d9c3767cb991a2b2af6538cf9661969
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24966
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Chun-Chen TK Hsu <chunchenhsu@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/arch/arm/fastmodel/iris/thread_context.hh

index 7db253c8d0f85cc8277b1778f7e2a5672c7ce0d5..0b55415325c472d9baf285203b4382fcad1932ca 100644 (file)
@@ -195,11 +195,7 @@ class ThreadContext : public ::ThreadContext
     {
         return _dtb;
     }
-    CheckerCPU *
-    getCheckerCpuPtr() override
-    {
-        panic("%s not implemented.", __FUNCTION__);
-    }
+    CheckerCPU *getCheckerCpuPtr() override { return nullptr; }
     ArmISA::Decoder *
     getDecoderPtr() override
     {