- added CallMCR function to coprocessor HLE module

- moved instruction decoding to coprocessor HLE module
This commit is contained in:
bunnei
2014-05-01 23:03:50 -04:00
parent c1e71ae1ac
commit f7c6302009
3 changed files with 43 additions and 29 deletions

View File

@ -8,13 +8,16 @@
namespace HLE {
/// MRC operations (ARM register from coprocessor), decoded as instr[20:27]
enum ARM11_MRC_OPERATION {
/// Coprocessor operations
enum CoprocessorOperation {
DATA_SYNCHRONIZATION_BARRIER = 0xE0,
CALL_GET_THREAD_COMMAND_BUFFER = 0xE1,
};
/// Call an MRC operation in HLE
u32 CallMRC(ARM11_MRC_OPERATION operation);
/// Call an MCR (move to coprocessor from ARM register) instruction in HLE
s32 CallMCR(u32 instruction, u32 value);
/// Call an MRC (move to ARM register from coprocessor) instruction in HLE
s32 CallMRC(u32 instruction);
} // namespace