mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Changed drivers from accessing has_fpu directly to use new set and get methods
This commit is contained in:
parent
cbb08316df
commit
51ce097f47
@ -151,7 +151,7 @@ void apollo_set_cpu_has_fpu(m68000_base_device *device, int onoff)
|
||||
}
|
||||
else
|
||||
{
|
||||
device->has_fpu = onoff;
|
||||
device->set_fpu_enable(onoff);
|
||||
DLOG1(("apollo_set_cpu_has_fpu: FPU has been %s", onoff ? "enabled" : "disabled"));
|
||||
}
|
||||
}
|
||||
@ -242,7 +242,7 @@ READ32_MEMBER(apollo_state::apollo_instruction_hook)
|
||||
idle_counter = 0;
|
||||
}
|
||||
|
||||
if (!m_maincpu->has_fpu && !m_maincpu->pmmu_enabled && (m_maincpu->ir & 0xff00) == 0xf200)
|
||||
if (!m_maincpu->get_fpu_enable() && !m_maincpu->pmmu_enabled && (m_maincpu->ir & 0xff00) == 0xf200)
|
||||
{
|
||||
// set APOLLO_CSR_SR_FP_TRAP in cpu status register for /sau7/self_test
|
||||
apollo_csr_set_status_register(APOLLO_CSR_SR_FP_TRAP, APOLLO_CSR_SR_FP_TRAP);
|
||||
|
@ -478,7 +478,7 @@ WRITE8_MEMBER (cpu30_state::flop_dmac_w){
|
||||
// TODO: Connect PC0, PC1, PC4 and PC7 to B5 and/or P2 connector
|
||||
READ8_MEMBER (cpu30_state::pit1c_r){
|
||||
LOG(("%s\n", FUNCNAME));
|
||||
m_maincpu->has_fpu = 1; // Lets assume the FPCP is always installed ( which is default for 68030 atm )
|
||||
m_maincpu->set_fpu_enable(1); // Lets assume the FPCP is always installed ( which is default for 68030 atm )
|
||||
return 0xff & ~FPCP_SENSE; // Should really be command line for the edge cases...
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user