aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armos.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1998-06-02 22:23:52 +0000
committerNick Clifton <nickc@redhat.com>1998-06-02 22:23:52 +0000
commite3ace30a618618b40870e52e27b728044001619b (patch)
treea534b19a1a17d3e5d57f03b9713ca05c7dff63c5 /sim/arm/armos.c
parent0e039bdc1ba497f96072cf68fea9e73c581d5ca9 (diff)
downloadgdb-e3ace30a618618b40870e52e27b728044001619b.zip
gdb-e3ace30a618618b40870e52e27b728044001619b.tar.gz
gdb-e3ace30a618618b40870e52e27b728044001619b.tar.bz2
Allow simulator to work with Angel SWIs.
Diffstat (limited to 'sim/arm/armos.c')
-rw-r--r--sim/arm/armos.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 4eb672d..71ca8ff 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -296,6 +296,8 @@ unsigned ARMul_OSHandleSWI(ARMul_State *state,ARMword number)
{
char dummy[2000];
int i;
+ int flags;
+
for (i = 0;
dummy[i] = ARMul_ReadByte(state, state->Reg[0] + i);
i++)
@@ -417,6 +419,11 @@ unsigned ARMul_OSHandleSWI(ARMul_State *state,ARMword number)
} while (temp != 0) ;
return(TRUE) ;
+ case AngelSWI_ARM:
+ case AngelSWI_Thumb:
+ /* Ignore these SWIs (for now). */
+ return TRUE;
+
default :
state->Emulate = FALSE ;
return(FALSE) ;