fastmodel: Use all possible address spaces when setting up a bp.
authorGabe Black <gabeblack@google.com>
Tue, 11 Feb 2020 02:04:39 +0000 (18:04 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 20 Feb 2020 20:18:13 +0000 (20:18 +0000)
commit90cf2463aa3a087b4a621627f05191468eac5897
tree224d90ac628ceb479adcb589493cf4b0902e1c33
parent5100b81d1cc5639756d1e4ef9d66649d6be53ff8
fastmodel: Use all possible address spaces when setting up a bp.

gem5 does not historically distinguish between address spaces when
interacting with gdb, and gdb doesn't really give it any address space
information to work with. To ensure we catch whatever address space
we might be in by the time we get to the interesting address, we'll set
a breakpoint in all possible address spaces simultaneously with the
expectation that we'll hit one of them.

Change-Id: I9f4b93d04914db7a3c42be6236a523d35194afda
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25268
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Chun-Chen TK Hsu <chunchenhsu@google.com>
src/arch/arm/fastmodel/CortexA76/thread_context.cc
src/arch/arm/fastmodel/CortexA76/thread_context.hh
src/arch/arm/fastmodel/iris/thread_context.cc
src/arch/arm/fastmodel/iris/thread_context.hh