From: Gabe Black Date: Sat, 1 Feb 2020 10:27:16 +0000 (-0800) Subject: fastmodel: Return nullptr from getCheckerCpuPtr on fast model CPUs. X-Git-Tag: v20.0.0.0~469 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40060c45c3eeca3da94998a5511ae1ddb3862188;p=gem5.git fastmodel: Return nullptr from getCheckerCpuPtr on fast model CPUs. 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 Reviewed-by: Chun-Chen TK Hsu Maintainer: Gabe Black --- diff --git a/src/arch/arm/fastmodel/iris/thread_context.hh b/src/arch/arm/fastmodel/iris/thread_context.hh index 7db253c8d..0b5541532 100644 --- a/src/arch/arm/fastmodel/iris/thread_context.hh +++ b/src/arch/arm/fastmodel/iris/thread_context.hh @@ -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 {