Changed drivers from accessing has_fpu directly to use new set and get methods

This commit is contained in:
Joakim Larsson Edstrom 2016-11-16 13:22:00 +01:00
parent cbb08316df
commit 51ce097f47
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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...
}