summaryrefslogtreecommitdiff
path: root/emulators/arcem/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/arcem/patches/patch-ad')
-rw-r--r--emulators/arcem/patches/patch-ad35
1 files changed, 35 insertions, 0 deletions
diff --git a/emulators/arcem/patches/patch-ad b/emulators/arcem/patches/patch-ad
new file mode 100644
index 00000000000..79678af0f3a
--- /dev/null
+++ b/emulators/arcem/patches/patch-ad
@@ -0,0 +1,35 @@
+$NetBSD: patch-ad,v 1.1 2004/12/03 15:15:23 skrll Exp $
+
+--- arch/armarc.c.orig 2002-05-06 09:52:53.000000000 +0100
++++ arch/armarc.c
+@@ -355,7 +355,7 @@ unsigned ARMul_MemoryInit(ARMul_State *s
+ FILE *ROMFile;
+ unsigned int ROMWordNum,ROMWord;
+ int PresPage;
+- unsigned int index;
++ unsigned int idx;
+
+ PrivDPtr = (PrivateDataType *)malloc(sizeof(PrivateDataType));
+ if (PrivDPtr == NULL) {
+@@ -392,8 +392,8 @@ unsigned ARMul_MemoryInit(ARMul_State *s
+ exit(3);
+ };
+
+- for (index = 0; index < (MEMC.RAMSize / 4); index++)
+- MEMC.PhysRamfuncs[index]=ARMul_Emulate_DecodeInstr;
++ for (idx = 0; idx < (MEMC.RAMSize / 4); idx++)
++ MEMC.PhysRamfuncs[idx]=ARMul_Emulate_DecodeInstr;
+
+ MEMC.ROMMapFlag=1; /* Map ROM to address 0 */
+ MEMC.ControlReg=0; /* Defaults */
+@@ -461,8 +461,8 @@ unsigned ARMul_MemoryInit(ARMul_State *s
+ PRIVD->irqflags = 0;
+ PRIVD->fiqflags = 0;
+
+- for(index = 0;index < (512 * 1024) / UPDATEBLOCKSIZE; index++) {
+- MEMC.UpdateFlags[index] = 1;
++ for(idx = 0;idx < (512 * 1024) / UPDATEBLOCKSIZE; idx++) {
++ MEMC.UpdateFlags[idx] = 1;
+ }
+
+ MEMC.OldAddress1 = -1;