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)
commit40060c45c3eeca3da94998a5511ae1ddb3862188
tree3f13dcd4b12339f6ad2683fd88cd0bb40da8f570
parent306793833cb504402f7942b23db29aa854e20efe
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 <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