From 40060c45c3eeca3da94998a5511ae1ddb3862188 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 1 Feb 2020 02:27:16 -0800 Subject: [PATCH] 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 --- src/arch/arm/fastmodel/iris/thread_context.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 { -- 2.30.2