Only call XScale_check_memacc if in XScale mode.
authorNick Clifton <nickc@redhat.com>
Sun, 13 Apr 2003 08:54:06 +0000 (08:54 +0000)
committerNick Clifton <nickc@redhat.com>
Sun, 13 Apr 2003 08:54:06 +0000 (08:54 +0000)
sim/arm/ChangeLog
sim/arm/armvirt.c

index 03c923ee0d600e629435f09b31fcc7432e5c3a15..a3cd7f2248a34a1306c2680e25378c9fe390b4d1 100644 (file)
@@ -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.
index 26fd905ac3685fd8184be4aaa1587ac07836ec11..23038a1739da16cfe719e219c2861b1c557b1cbc 100644 (file)
@@ -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;