mirror of https://github.com/PCSX2/pcsx2.git
Shortcut for intc_stat reads. Speeds up games that use it a lot.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@877 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
149f84b00d
commit
1e4f48437f
|
@ -214,12 +214,6 @@ static __forceinline mem32_t __hwRead32_page_0F( u32 mem, bool intchack )
|
||||||
|
|
||||||
switch( mem )
|
switch( mem )
|
||||||
{
|
{
|
||||||
case 0xf000:
|
|
||||||
if( intchack ) IntCHackCheck();
|
|
||||||
// This one is checked alot, so leave it commented out unless you love 600 meg logfiles.
|
|
||||||
//HW_LOG("INTC_STAT Read 32bit %x", psHu32(0xf010));
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 0xf010:
|
case 0xf010:
|
||||||
HW_LOG("INTC_MASK Read32, value=0x%x", psHu32(INTC_MASK));
|
HW_LOG("INTC_MASK Read32, value=0x%x", psHu32(INTC_MASK));
|
||||||
break;
|
break;
|
||||||
|
@ -261,12 +255,22 @@ static __forceinline mem32_t __hwRead32_page_0F( u32 mem, bool intchack )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
case 0xf000:
|
||||||
|
//Put this back on top in case you remove the shortcut for intc_stat register (see below function) (rama).
|
||||||
|
if( intchack ) IntCHackCheck();
|
||||||
|
// This one is checked alot, so leave it commented out unless you love 600 meg logfiles.
|
||||||
|
//HW_LOG("INTC_STAT Read 32bit %x", psHu32(0xf010));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return *((u32*)&PS2MEM_HW[mem]);
|
return *((u32*)&PS2MEM_HW[mem]);
|
||||||
}
|
}
|
||||||
|
|
||||||
mem32_t __fastcall hwRead32_page_0F(u32 mem)
|
mem32_t __fastcall hwRead32_page_0F(u32 mem)
|
||||||
{
|
{
|
||||||
|
if (mem == 0x1000f000) //shortcut for intc_stat
|
||||||
|
return *((u32*)&PS2MEM_HW[0xF000]);
|
||||||
|
|
||||||
return __hwRead32_page_0F( mem, false );
|
return __hwRead32_page_0F( mem, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue