mirror of
https://github.com/holub/mame
synced 2025-05-19 20:29:09 +03:00
m68k: throw F-line trap correctly when PMMU instructions are hit on non-equipped CPUs.
This commit is contained in:
parent
1945a6b4cb
commit
0585b0a309
@ -7997,13 +7997,12 @@ M68KMAKE_OP(pea, 32, ., .)
|
||||
|
||||
M68KMAKE_OP(pflush, 32, ., .)
|
||||
{
|
||||
if ((CPU_TYPE_IS_040_PLUS(m68k->cpu_type)) && (m68k->has_pmmu))
|
||||
if ((CPU_TYPE_IS_EC020_PLUS(m68k->cpu_type)) && (m68k->has_pmmu))
|
||||
{
|
||||
// Nothing to do, unless address translation cache is emulated
|
||||
logerror("680x0: unhandled PFLUSH\n");
|
||||
return;
|
||||
}
|
||||
m68ki_exception_illegal(m68k);
|
||||
m68ki_exception_1111(m68k);
|
||||
}
|
||||
|
||||
M68KMAKE_OP(pmove, 32, ., .)
|
||||
@ -8011,16 +8010,16 @@ M68KMAKE_OP(pmove, 32, ., .)
|
||||
UINT16 modes;
|
||||
UINT32 ea;
|
||||
|
||||
modes = m68ki_read_imm_16(m68k);
|
||||
ea = M68KMAKE_GET_EA_AY_32;
|
||||
|
||||
if ((CPU_TYPE_IS_EC020_PLUS(m68k->cpu_type)) && (m68k->has_pmmu))
|
||||
{
|
||||
modes = m68ki_read_imm_16(m68k);
|
||||
ea = M68KMAKE_GET_EA_AY_32;
|
||||
|
||||
logerror("680x0: unhandled PMOVE modes %x ea %x\n", modes, ea);
|
||||
}
|
||||
else
|
||||
{
|
||||
m68ki_exception_illegal(m68k);
|
||||
m68ki_exception_1111(m68k);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user