pkgsrc/emulators/arcem/patches/patch-ad
skrll b7a81af86c Update arcem to 1.00
Changes are

- New manual and new SourceForge page. Other documentation deprecated.
- Added project files for MS VC++, and fix warnings provoked by it.
- Further split of windowing/non-windowing functionality to aid division
  of architecture-independent files.
- Windows version made independent from Cygwin.
- Windows support imported from eQRD version. Features brought inline with
  other versions, including icon change, and same format for choices file.
- Entirety of build warnings fixed under GCC, including those that appeared
  from turning on harsh warning flags.
- General tidying.
- Makefile rearranged so that default Unix builds are more sensible.
- Support for running RISC OS, by Alex Macfarlane Smith and Peter Naulls
- Split of the windowing aspects of the code, to allow independent development.
- Some small speed ups.
- Source code tidying and warning fixes.
2004-12-03 15:15:23 +00:00

35 lines
1.1 KiB
Text

$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;