summaryrefslogtreecommitdiff
path: root/emulators/arcem/patches/patch-ad
blob: 79678af0f3adfcccce2cf065f2920bfcabd3098e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;