fastmodel: Determine what space to use for breakpoints dynamically.
authorGabe Black <gabeblack@google.com>
Thu, 24 Oct 2019 23:14:32 +0000 (16:14 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 24 Dec 2019 04:22:28 +0000 (04:22 +0000)
commit231dc99c840f3abff0c387287d5d5f995c209632
tree73bd42eb20d5b26fdb202aa11a3152935fc1f8bb
parent6e91bb9dcb276780b2474d73ca4f0a0ece17aca7
fastmodel: Determine what space to use for breakpoints dynamically.

This was hardcoded as 5, but should be determined based on the memory
space IDs the fast model returns. What we do now is have a specific
override for ARM (perhaps conceptually the A76) which looks for an
address space called "Current" which seems to work well.

It's possible that the appropriate address space for a different model
might have a different number, or even a different name. This may need
to be further specialized/parameterized in those cases.

Change-Id: Ie1ef99675fd9bccab50b7fc7add16b82a93bd60b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22143
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/fastmodel/iris/arm/thread_context.cc
src/arch/arm/fastmodel/iris/arm/thread_context.hh
src/arch/arm/fastmodel/iris/thread_context.cc
src/arch/arm/fastmodel/iris/thread_context.hh