aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armvirt.c
diff options
context:
space:
mode:
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;
}