Enable IOP's detailed bios logs to devel builds (previously debug build only), and have IOP interpreter always spam bios logs even in release mode builds.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2433 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-01-16 03:33:49 +00:00
parent 4fbbb75020
commit 9fd60c243d
3 changed files with 15 additions and 11 deletions

View File

@ -196,7 +196,6 @@ const char* intrname[]={
void zeroEx()
{
#ifdef PCSX2_DEVBUILD
u32 pc;
u32 code;
const char *lib;
@ -243,16 +242,21 @@ void zeroEx()
psxRegs.pc = psxRegs.GPR.n.ra;
}
if (!strncmp(lib, "loadcore", 8) && code == 6) {
DevCon.WriteLn( Color_Gray, "loadcore RegisterLibraryEntries (%x): %8.8s", psxRegs.pc, iopVirtMemR<char>(psxRegs.GPR.n.a0+12));
}
{
// these three can be pretty spammy at times, and so we might want to attach a
// log source toggle to them.
if (!strncmp(lib, "intrman", 7) && code == 4) {
DevCon.WriteLn( Color_Gray, "intrman RegisterIntrHandler (%x): intr %s, handler %x", psxRegs.pc, intrname[psxRegs.GPR.n.a0], psxRegs.GPR.n.a2);
}
if (!strncmp(lib, "loadcore", 8) && code == 6) {
DbgCon.WriteLn( Color_Gray, "loadcore RegisterLibraryEntries (%x): %8.8s", psxRegs.pc, iopVirtMemR<char>(psxRegs.GPR.n.a0+12));
}
if (!strncmp(lib, "sifcmd", 6) && code == 17) {
DevCon.WriteLn( Color_Gray, "sifcmd sceSifRegisterRpc (%x): rpc_id %x", psxRegs.pc, psxRegs.GPR.n.a1);
if (!strncmp(lib, "intrman", 7) && code == 4) {
DbgCon.WriteLn( Color_Gray, "intrman RegisterIntrHandler (%x): intr %s, handler %x", psxRegs.pc, intrname[psxRegs.GPR.n.a0], psxRegs.GPR.n.a2);
}
if (!strncmp(lib, "sifcmd", 6) && code == 17) {
DbgCon.WriteLn( Color_Gray, "sifcmd sceSifRegisterRpc (%x): rpc_id %x", psxRegs.pc, psxRegs.GPR.n.a1);
}
}
if (!strncmp(lib, "sysclib", 8))

View File

@ -92,7 +92,7 @@ void __fastcall iopHwWrite8_Page1( u32 addr, mem8_t val )
DevCon.Warning( "HwWrite8 to Counter32 [ignored], addr 0x%08x = 0x%02x", addr, psxHu8(addr) );
psxHu8( addr ) = val;
}
else if( masked_addr >= pgmsk(HW_USB_START) && masked_addr < pgmsk(HW_USB_END) )
else if( (masked_addr >= pgmsk(HW_USB_START)) && (masked_addr < pgmsk(HW_USB_END)) )
{
USBwrite8( addr, val );
}

View File

@ -662,7 +662,7 @@ void psxRecompileCodeConst1(R3000AFNPTR constcode, R3000AFNPTR_INFO noconstcode)
if ( ! _Rt_ ) {
if( (psxRegs.code>>26) == 9 ) {
//ADDIU, call bios
if( IsDebugBuild )
if( IsDevBuild )
{
MOV32ItoM( (uptr)&psxRegs.code, psxRegs.code );
MOV32ItoM( (uptr)&psxRegs.pc, psxpc );