#endif was not at the right line (causing unreferenced symbols)

This commit is contained in:
damdoum 2007-02-16 15:45:40 +00:00
parent 771aede2b4
commit 1c937b81e4
2 changed files with 14 additions and 8 deletions

View File

@ -37,12 +37,12 @@
#include "registers.h"
void FASTCALL MMU_writeXX(u32 proc, u32 adr, u32 val, u8 nbbytes);
void FASTCALL MMU_write8_old(u32 proc, u32 adr, u8 val);
void FASTCALL MMU_write16_old(u32 proc, u32 adr, u16 val);
void FASTCALL MMU_write32_old(u32 proc, u32 adr, u32 val);
#define USE_OLD 1
#define USE_OLD 0
#if USE_OLD
void FASTCALL MMU_write8(u32 proc, u32 adr, u8 val) {
MMU_write8_old(proc, adr, val);
@ -190,6 +190,10 @@ u32 MMU_ARM7_WAIT32[16]={
1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 5, 1, 1, 1, 1, 1,
};
void MMU_Init(void) {
int i;
@ -802,6 +806,9 @@ u32 FASTCALL MMU_read32(u32 proc, u32 adr)
return T1ReadLong(MMU.MMU_MEM[proc][(adr >> 20) & 0xFF], adr & MMU.MMU_MASK[proc][(adr >> 20) & 0xFF]);
}
u16 partie = 1;
u32 testval = 0;
void FASTCALL MMU_write8_old(u32 proc, u32 adr, u8 val)
{
if((proc == ARMCPU_ARM9) && ((adr & ~0x3FFF) == MMU.DTCMRegion))
@ -1127,7 +1134,6 @@ void FASTCALL MMU_write8_old(u32 proc, u32 adr, u8 val)
MMU.MMU_MEM[proc][(adr>>20)&0xFF][adr&MMU.MMU_MASK[proc][(adr>>20)&0xFF]]=val;
}
u16 partie = 1;
void FASTCALL MMU_write16_old(u32 proc, u32 adr, u16 val)
{
@ -1844,7 +1850,6 @@ void FASTCALL MMU_write16_old(u32 proc, u32 adr, u16 val)
T1WriteWord(MMU.MMU_MEM[proc][(adr>>20)&0xFF], adr&MMU.MMU_MASK[proc][(adr>>20)&0xFF], val);
}
u32 testval = 0;
void FASTCALL MMU_write32_old(u32 proc, u32 adr, u32 val)
{
@ -2769,6 +2774,8 @@ void FASTCALL MMU_write32_acl(u32 proc, u32 adr, u32 val)
}
#endif
@ -3742,6 +3749,7 @@ typedef union {
} u32_union;
#endif
void FASTCALL MMU_writeXX(u32 proc, u32 adr, u32 val, u8 nbbytes) {
u32 adr_u8_1 = adr & 0xFFFFFFFC;
u32 adr_u8_2 = adr_u8_1 + 1;
@ -3934,6 +3942,3 @@ void FASTCALL MMU_writeXX(u32 proc, u32 adr, u32 val, u8 nbbytes) {
}
}
#endif

View File

@ -150,6 +150,7 @@ u32 FASTCALL MMU_read32(u32 proc, u32 adr);
void FASTCALL MMU_write8(u32 proc, u32 adr, u8 val);
void FASTCALL MMU_write16(u32 proc, u32 adr, u16 val);
void FASTCALL MMU_write32(u32 proc, u32 adr, u32 val);
void FASTCALL MMU_writeXX(u32 proc, u32 adr, u32 val, u8 nbbytes);
#ifdef MMU_ENABLE_ACL
void FASTCALL MMU_write8_acl(u32 proc, u32 adr, u8 val);