aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armos.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-01 00:14:40 +0000
committerNick Clifton <nickc@redhat.com>2001-02-01 00:14:40 +0000
commit88694af3f9e50c9196913fc0246cad42a0ae4d80 (patch)
tree008b77fe52a56ac41cc9d966445a8d4764aeea64 /sim/arm/armos.c
parent27b82ed26e4c5d8012bc78a194a50417e324e87a (diff)
downloadbinutils-88694af3f9e50c9196913fc0246cad42a0ae4d80.zip
binutils-88694af3f9e50c9196913fc0246cad42a0ae4d80.tar.gz
binutils-88694af3f9e50c9196913fc0246cad42a0ae4d80.tar.bz2
Detect installation of SWI vector by running program as well as loading program.
Diffstat (limited to 'sim/arm/armos.c')
-rw-r--r--sim/arm/armos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index dd0ce23..789a35d 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -171,6 +171,8 @@ ARMul_OSInit (ARMul_State * state)
for (i = ARMul_ResetV; i <= ARMFIQV; i += 4)
ARMul_WriteWord (state, i, instr); /* write hardware vectors */
+ SWI_vector_installed = 0;
+
for (i = ARMul_ResetV; i <= ARMFIQV + 4; i += 4)
{
ARMul_WriteWord (state, ADDRSOFTVECTORS + i, SOFTVECTORCODE + i * 4);
@@ -628,8 +630,6 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
default:
{
/* If there is a SWI vector installed use it. */
- extern int SWI_vector_installed;
-
if (state->is_XScale && saved_number != -1)
number = saved_number;