summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-04-13 08:54:06 +0000
committerNick Clifton <nickc@redhat.com>2003-04-13 08:54:06 +0000
commit171ba774583e1c787377897a0438662a10525432 (patch)
treed48609066fd0f188f5047d18685fb11b76f2e7f4 /sim
parent919e819f409965d5903458044a2e1728f267cc46 (diff)
downloadgdb-171ba774583e1c787377897a0438662a10525432.tar.gz
Only call XScale_check_memacc if in XScale mode.
Diffstat (limited to 'sim')
-rw-r--r--sim/arm/ChangeLog6
-rw-r--r--sim/arm/armvirt.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 03c923ee0d6..a3cd7f2248a 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-13 Nick Clifton <nickc@redhat.com>
+
+ * armvirt.c (GetWord): Only call XScale_check_memacc if in XScale
+ mode.
+ (PutWord): Likewise.
+
2003-03-30 Nick Clifton <nickc@redhat.com>
* configure.in (CON_FLAGS): Remove.
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c
index 26fd905ac36..23038a1739d 100644
--- a/sim/arm/armvirt.c
+++ b/sim/arm/armvirt.c
@@ -64,7 +64,7 @@ GetWord (ARMul_State * state, ARMword address, int check)
ARMword **pagetable;
ARMword *pageptr;
- if (check)
+ if (check && state->is_XScale)
XScale_check_memacc (state, &address, 0);
page = address >> PAGEBITS;
@@ -100,7 +100,7 @@ PutWord (ARMul_State * state, ARMword address, ARMword data, int check)
ARMword **pagetable;
ARMword *pageptr;
- if (check)
+ if (check && state->is_XScale)
XScale_check_memacc (state, &address, 1);
page = address >> PAGEBITS;