CPU/Recompiler: Don't require fallback for GTE instructions

This commit is contained in:
Connor McLaughlin
2019-12-11 21:54:08 +10:00
parent a6dab97928
commit a5afb250ea
5 changed files with 82 additions and 0 deletions

View File

@ -92,4 +92,19 @@ void Thunks::RaiseAddressException(Core* cpu, u32 address, bool store, bool bran
cpu->RaiseException(store ? Exception::AdES : Exception::AdEL);
}
void Thunks::ExecuteGTEInstruction(Core* cpu, u32 instruction_bits)
{
cpu->m_cop2.ExecuteInstruction(GTE::Instruction{instruction_bits});
}
u32 Thunks::ReadGTERegister(Core* cpu, u32 reg)
{
return cpu->m_cop2.ReadRegister(reg);
}
void Thunks::WriteGTERegister(Core* cpu, u32 reg, u32 value)
{
cpu->m_cop2.WriteRegister(reg, value);
}
} // namespace CPU::Recompiler