arch-arm: only change the pc address when GDB registers are set
authorCiro Santilli <ciro.santilli@arm.com>
Wed, 14 Nov 2018 00:00:00 +0000 (00:00 +0000)
committerCiro Santilli <ciro.santilli@arm.com>
Mon, 3 Dec 2018 10:43:15 +0000 (10:43 +0000)
commit32e2157355b79af2c3b0af8429e5df3d4c7df562
tree3572ccb8b16dbfe408d8ec8c741c0c79e331e872
parent00ea41368d9364664ab6c9fc1e7a74bdffd8d41a
arch-arm: only change the pc address when GDB registers are set

The entire pcState was being reset, which made the simulation incorrectly
switch to aarch32 from aarch64.

Change-Id: I9ba7dd0ed95bc6120d94393bba272e0cb8c081c5
Reviewed-on: https://gem5-review.googlesource.com/c/14496
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/arch/arm/remote_gdb.cc