mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
speed up initial programming by reducing the number of error.log entries (nw)
This commit is contained in:
parent
72adf80244
commit
4efb2fe825
1 changed files with 16 additions and 15 deletions
|
@ -1417,22 +1417,22 @@ READ32_MEMBER(cps3_state::cps3_gfxflash_r)
|
|||
|
||||
if (ACCESSING_BITS_24_31) // GFX Flash 1
|
||||
{
|
||||
logerror("read GFX flash chip %s addr %02x\n", chip0->tag(), (offset<<1));
|
||||
//logerror("read GFX flash chip %s addr %02x\n", chip0->tag(), (offset<<1));
|
||||
result |= chip0->read( (offset<<1) ) << 24;
|
||||
}
|
||||
if (ACCESSING_BITS_16_23) // GFX Flash 2
|
||||
{
|
||||
logerror("read GFX flash chip %s addr %02x\n", chip1->tag(), (offset<<1));
|
||||
//logerror("read GFX flash chip %s addr %02x\n", chip1->tag(), (offset<<1));
|
||||
result |= chip1->read( (offset<<1) ) << 16;
|
||||
}
|
||||
if (ACCESSING_BITS_8_15) // GFX Flash 1
|
||||
{
|
||||
logerror("read GFX flash chip %s addr %02x\n", chip0->tag(), (offset<<1)+1);
|
||||
//logerror("read GFX flash chip %s addr %02x\n", chip0->tag(), (offset<<1)+1);
|
||||
result |= chip0->read( (offset<<1)+0x1 ) << 8;
|
||||
}
|
||||
if (ACCESSING_BITS_0_7) // GFX Flash 2
|
||||
{
|
||||
logerror("read GFX flash chip %s addr %02x\n", chip1->tag(), (offset<<1)+1);
|
||||
//logerror("read GFX flash chip %s addr %02x\n", chip1->tag(), (offset<<1)+1);
|
||||
result |= chip1->read( (offset<<1)+0x1 ) << 0;
|
||||
}
|
||||
|
||||
|
@ -1457,19 +1457,19 @@ WRITE32_MEMBER(cps3_state::cps3_gfxflash_w)
|
|||
if (ACCESSING_BITS_24_31) // GFX Flash 1
|
||||
{
|
||||
command = (data >> 24) & 0xff;
|
||||
logerror("write to GFX flash chip %s addr %02x cmd %02x\n", chip0->tag(), (offset<<1), command);
|
||||
//logerror("write to GFX flash chip %s addr %02x cmd %02x\n", chip0->tag(), (offset<<1), command);
|
||||
chip0->write( (offset<<1), command);
|
||||
}
|
||||
if (ACCESSING_BITS_16_23) // GFX Flash 2
|
||||
{
|
||||
command = (data >> 16) & 0xff;
|
||||
logerror("write to GFX flash chip %s addr %02x cmd %02x\n", chip1->tag(), (offset<<1), command);
|
||||
//logerror("write to GFX flash chip %s addr %02x cmd %02x\n", chip1->tag(), (offset<<1), command);
|
||||
chip1->write( (offset<<1), command);
|
||||
}
|
||||
if (ACCESSING_BITS_8_15) // GFX Flash 1
|
||||
{
|
||||
command = (data >> 8) & 0xff;
|
||||
logerror("write to GFX flash chip %s addr %02x cmd %02x\n", chip0->tag(), (offset<<1)+1, command);
|
||||
//logerror("write to GFX flash chip %s addr %02x cmd %02x\n", chip0->tag(), (offset<<1)+1, command);
|
||||
chip0->write( (offset<<1)+0x1, command);
|
||||
}
|
||||
if (ACCESSING_BITS_0_7) // GFX Flash 2
|
||||
|
@ -1508,22 +1508,22 @@ UINT32 cps3_state::cps3_flashmain_r(address_space &space, int which, UINT32 offs
|
|||
|
||||
if (ACCESSING_BITS_24_31) // Flash 1
|
||||
{
|
||||
// logerror("read flash chip %d addr %02x\n", base+0, offset*4 );
|
||||
//logerror("read flash chip %d addr %02x\n", base+0, offset*4 );
|
||||
result |= (m_simm[which][0]->read(offset)<<24);
|
||||
}
|
||||
if (ACCESSING_BITS_16_23) // Flash 1
|
||||
{
|
||||
// logerror("read flash chip %d addr %02x\n", base+1, offset*4 );
|
||||
//logerror("read flash chip %d addr %02x\n", base+1, offset*4 );
|
||||
result |= (m_simm[which][1]->read(offset)<<16);
|
||||
}
|
||||
if (ACCESSING_BITS_8_15) // Flash 1
|
||||
{
|
||||
// logerror("read flash chip %d addr %02x\n", base+2, offset*4 );
|
||||
//logerror("read flash chip %d addr %02x\n", base+2, offset*4 );
|
||||
result |= (m_simm[which][2]->read(offset)<<8);
|
||||
}
|
||||
if (ACCESSING_BITS_0_7) // Flash 1
|
||||
{
|
||||
// logerror("read flash chip %d addr %02x\n", base+3, offset*4 );
|
||||
//logerror("read flash chip %d addr %02x\n", base+3, offset*4 );
|
||||
result |= (m_simm[which][3]->read(offset)<<0);
|
||||
}
|
||||
|
||||
|
@ -1564,25 +1564,25 @@ void cps3_state::cps3_flashmain_w(int which, UINT32 offset, UINT32 data, UINT32
|
|||
if (ACCESSING_BITS_24_31) // Flash 1
|
||||
{
|
||||
command = (data >> 24) & 0xff;
|
||||
logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][0]->tag(), offset, command);
|
||||
//logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][0]->tag(), offset, command);
|
||||
m_simm[which][0]->write(offset, command);
|
||||
}
|
||||
if (ACCESSING_BITS_16_23) // Flash 2
|
||||
{
|
||||
command = (data >> 16) & 0xff;
|
||||
logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][1]->tag(), offset, command);
|
||||
//logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][1]->tag(), offset, command);
|
||||
m_simm[which][1]->write(offset, command);
|
||||
}
|
||||
if (ACCESSING_BITS_8_15) // Flash 2
|
||||
{
|
||||
command = (data >> 8) & 0xff;
|
||||
logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][2]->tag(), offset, command);
|
||||
//logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][2]->tag(), offset, command);
|
||||
m_simm[which][2]->write(offset, command);
|
||||
}
|
||||
if (ACCESSING_BITS_0_7) // Flash 2
|
||||
{
|
||||
command = (data >> 0) & 0xff;
|
||||
logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][3]->tag(), offset, command);
|
||||
//logerror("write to flash chip %s addr %02x cmd %02x\n", m_simm[which][3]->tag(), offset, command);
|
||||
m_simm[which][3]->write(offset, command);
|
||||
}
|
||||
|
||||
|
@ -2207,6 +2207,7 @@ static ADDRESS_MAP_START( cps3_map, AS_PROGRAM, 32, cps3_state )
|
|||
AM_RANGE(0x06000000, 0x067fffff) AM_READWRITE(cps3_flash1_r, cps3_flash1_w ) /* Flash ROMs simm 1 */
|
||||
AM_RANGE(0x06800000, 0x06ffffff) AM_READWRITE(cps3_flash2_r, cps3_flash2_w ) /* Flash ROMs simm 2 */
|
||||
|
||||
AM_RANGE(0x07ff0048, 0x07ff004b) AM_WRITENOP // bit 0 toggles during programming
|
||||
AM_RANGE(0xc0000000, 0xc00003ff) AM_RAM_WRITE(cps3_0xc0000000_ram_w ) AM_SHARE("0xc0000000_ram") /* Executes code from here */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
|
Loading…
Reference in a new issue