trunk/src/mame/drivers/jaguar.c
| r21080 | r21081 | |
| 593 | 593 | * |
| 594 | 594 | *************************************/ |
| 595 | 595 | |
| 596 | | // shouldn't the DSPs be doing this calc, why is this needed for Jaguar? |
| 597 | 596 | READ32_MEMBER(jaguar_state::gpuctrl_r) |
| 598 | 597 | { |
| 599 | | UINT32 result = jaguargpu_ctrl_r(m_gpu, offset); |
| 600 | | |
| 601 | | if (!m_is_cojag) |
| 602 | | { |
| 603 | | if (m_protection_check != 1) return result; |
| 604 | | |
| 605 | | m_protection_check++; |
| 606 | | m_gpu_ram[0] = 0x3d0dead; |
| 607 | | return 0x80000000; |
| 608 | | } |
| 609 | | else |
| 610 | | return result; |
| 598 | return jaguargpu_ctrl_r(m_gpu, offset); |
| 611 | 599 | } |
| 612 | 600 | |
| 613 | 601 | |
| 614 | 602 | WRITE32_MEMBER(jaguar_state::gpuctrl_w) |
| 615 | 603 | { |
| 616 | | if (!m_is_cojag) |
| 617 | | if ((!m_protection_check) && (offset == 5) && (data == 1)) m_protection_check++; |
| 618 | | |
| 619 | 604 | jaguargpu_ctrl_w(m_gpu, offset, data, mem_mask); |
| 620 | 605 | } |
| 621 | 606 | |