aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armvirt.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/armvirt.c
parent27b82ed26e4c5d8012bc78a194a50417e324e87a (diff)
downloadgdb-88694af3f9e50c9196913fc0246cad42a0ae4d80.zip
gdb-88694af3f9e50c9196913fc0246cad42a0ae4d80.tar.gz
gdb-88694af3f9e50c9196913fc0246cad42a0ae4d80.tar.bz2
Detect installation of SWI vector by running program as well as loading program.
Diffstat (limited to 'sim/arm/armvirt.c')
-rw-r--r--sim/arm/armvirt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c
index f9ac453..b9a018b 100644
--- a/sim/arm/armvirt.c
+++ b/sim/arm/armvirt.c
@@ -49,6 +49,8 @@ defined to generate aborts. */
#define PAGEBITS 16
#define OFFSETBITS 0xffff
+int SWI_vector_installed = FALSE;
+
/***************************************************************************\
* Get a Word from Virtual Memory, maybe allocating the page *
\***************************************************************************/
@@ -111,6 +113,9 @@ PutWord (ARMul_State * state, ARMword address, ARMword data)
*(pagetable + page) = pageptr;
}
+ if (address == 0x8)
+ SWI_vector_installed = TRUE;
+
*(pageptr + offset) = data;
}