mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
Hooked up PPC602 IBR.
This commit is contained in:
parent
c303794661
commit
a7071bb8cb
@ -1337,6 +1337,9 @@ static void static_generate_exception(powerpc_state *ppc, UINT8 exception, int r
|
|||||||
generate_update_mode(ppc, block); // <update mode>
|
generate_update_mode(ppc, block); // <update mode>
|
||||||
|
|
||||||
/* determine our target PC */
|
/* determine our target PC */
|
||||||
|
if (ppc->flavor == PPC_MODEL_602)
|
||||||
|
UML_MOV(block, IREG(0), SPR32(SPR602_IBR)); // mov i0,[ibr]
|
||||||
|
else
|
||||||
UML_MOV(block, IREG(0), IMM(0x00000000)); // mov i0,0x00000000
|
UML_MOV(block, IREG(0), IMM(0x00000000)); // mov i0,0x00000000
|
||||||
UML_TEST(block, MSR32, IMM(MSROEA_IP)); // test [msr],IP
|
UML_TEST(block, MSR32, IMM(MSROEA_IP)); // test [msr],IP
|
||||||
UML_MOVc(block, IF_NZ, IREG(0), IMM(0xfff00000)); // mov i0,0xfff00000,nz
|
UML_MOVc(block, IF_NZ, IREG(0), IMM(0xfff00000)); // mov i0,0xfff00000,nz
|
||||||
|
Loading…
Reference in New Issue
Block a user