From 64a1067567254d9c13c7a37c91d802288f4c52fd Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Fri, 14 Jul 2000 16:49:46 +0000 Subject: [PATCH] 2000-07-14 Fernando Nasser * wrapper.c (sim_create_inferior): Reset mode to ARM when creating a new inferior. --- sim/arm/ChangeLog | 5 +++++ sim/arm/wrapper.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 7a436de0f98..c4f5150786f 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,8 @@ +2000-07-14 Fernando Nasser + + * wrapper.c (sim_create_inferior): Reset mode to ARM when creating a + new inferior. + 2000-07-04 Alexandre Oliva * armvirt.c (ABORTS): Do not define. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 5db178c47ca..513c0d06d87 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -225,6 +225,10 @@ sim_create_inferior (sd, abfd, argv, env) case 7: /* armv5 */ case 8: /* armv5t */ ARMul_SelectProcessor (state, STRONGARM); + /* Reset mode to ARM. A gdb user may rerun a program that had entered + THUMB mode from the start and cause the ARM-mode startup code to be + executed in THUMB mode. */ + ARMul_SetCPSR (state, THUMB2MODE); break; case 3: /* armv3 */ -- 2.30.2