git-svn-id: http://pcsx2.googlecode.com/svn/branches/pcsx2_0.9.4@197 96395faa-99c1-11dd-bbfe-3dabce05a288

This commit is contained in:
zerofrog 2007-11-11 22:26:38 +00:00
parent 62175904c7
commit eb2e3b0164
1 changed files with 9 additions and 9 deletions

View File

@ -2966,11 +2966,11 @@ int memRead128(u32 mem, u64 *out) {
return -1;
}
#define CHECK_VUMEM() { \
#define CHECK_VUMEM(size) { \
if( mem >= 0x11000000 && mem < 0x11004000 ) \
Cpu->ClearVU0(mem&0x3ff8, 4); \
else if( mem >= 0x1108000 && mem < 0x1100c000 ) \
Cpu->ClearVU1(mem&0x3ff8, 4); \
Cpu->ClearVU0(mem&0x3ff8, size); \
else if( mem >= 0x11008000 && mem < 0x1100c000 ) \
Cpu->ClearVU1(mem&0x3ff8, size); \
}
void memWrite8 (u32 mem, u8 value) {
@ -2987,7 +2987,7 @@ void memWrite8 (u32 mem, u8 value) {
*(u8 *)(p + (mem & 0xfff)) = value;
if (CHECK_EEREC) {
//CHECK_VUMEM();
CHECK_VUMEM(1);
REC_CLEARM(mem&(~3));
// PSXREC_CLEARM(mem & 0x1ffffc);
}
@ -3029,7 +3029,7 @@ void memWrite16(u32 mem, u16 value) {
#endif
*(u16*)(p + (mem & 0xfff)) = value;
if (CHECK_EEREC) {
//CHECK_VUMEM();
CHECK_VUMEM(1);
REC_CLEARM(mem&~1);
//PSXREC_CLEARM(mem & 0x1ffffe);
}
@ -3077,7 +3077,7 @@ void memWrite32(u32 mem, u32 value)
#endif
*(u32*)(p + (mem & 0xfff)) = value;
if (CHECK_EEREC) {
//CHECK_VUMEM();
CHECK_VUMEM(1);
REC_CLEARM(mem);
// PSXREC_CLEARM(mem & 0x1fffff);
}
@ -3122,7 +3122,7 @@ void memWrite64(u32 mem, u64 value) {
);*/
*(u64*)(p + (mem & 0xfff)) = value;
if (CHECK_EEREC) {
//CHECK_VUMEM();
CHECK_VUMEM(2);
REC_CLEARM(mem);
REC_CLEARM(mem+4);
}
@ -3159,7 +3159,7 @@ void memWrite128(u32 mem, u64 *value) {
((u64*)p)[0] = value[0];
((u64*)p)[1] = value[1];
if (CHECK_EEREC) {
//CHECK_VUMEM();
CHECK_VUMEM(4);
REC_CLEARM(mem);
REC_CLEARM(mem+4);
REC_CLEARM(mem+8);