Avoid logging if word reading from the IOGA

This commit is contained in:
Angelo Salese 2013-02-13 23:20:21 +00:00
parent 59a9815e1c
commit d134bb39d4

View File

@ -213,6 +213,7 @@ READ32_MEMBER(saturn_state::stv_ioga_r32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
res |= stv_ioga_r(space,offset*4+3); res |= stv_ioga_r(space,offset*4+3);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
return res; return res;
@ -225,6 +226,7 @@ WRITE32_MEMBER(saturn_state::stv_ioga_w32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
stv_ioga_w(space,offset*4+3,data); stv_ioga_w(space,offset*4+3,data);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
return; return;
@ -240,6 +242,7 @@ READ32_MEMBER(saturn_state::critcrsh_ioga_r32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
res |= critcrsh_ioga_r(space,offset*4+3); res |= critcrsh_ioga_r(space,offset*4+3);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
if(!space.debugger_access()) if(!space.debugger_access())
printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
@ -256,6 +259,7 @@ READ32_MEMBER(saturn_state::stvmp_ioga_r32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
res |= stvmp_ioga_r(space,offset*4+3); res |= stvmp_ioga_r(space,offset*4+3);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
if(!space.debugger_access()) if(!space.debugger_access())
printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
@ -269,6 +273,7 @@ WRITE32_MEMBER(saturn_state::stvmp_ioga_w32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
stvmp_ioga_w(space,offset*4+3,data); stvmp_ioga_w(space,offset*4+3,data);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
if(!space.debugger_access()) if(!space.debugger_access())
printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
} }
@ -283,6 +288,7 @@ READ32_MEMBER(saturn_state::magzun_ioga_r32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
res |= magzun_ioga_r(space,offset*4+3); res |= magzun_ioga_r(space,offset*4+3);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
if(!space.debugger_access()) if(!space.debugger_access())
printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask);
@ -296,6 +302,7 @@ WRITE32_MEMBER(saturn_state::magzun_ioga_w32)
if(ACCESSING_BITS_0_7) if(ACCESSING_BITS_0_7)
magzun_ioga_w(space,offset*4+3,data); magzun_ioga_w(space,offset*4+3,data);
if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31)
if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7))
if(!space.debugger_access()) if(!space.debugger_access())
printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data);
} }