summaryrefslogtreecommitdiff
path: root/src/core/hle/coprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/coprocessor.cpp')
-rw-r--r--src/core/hle/coprocessor.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/core/hle/coprocessor.cpp b/src/core/hle/coprocessor.cpp
index 74305331c..39674ee64 100644
--- a/src/core/hle/coprocessor.cpp
+++ b/src/core/hle/coprocessor.cpp
@@ -9,42 +9,26 @@
9 9
10namespace HLE { 10namespace HLE {
11 11
12/// Data synchronization barrier
13u32 DataSynchronizationBarrier() {
14 return 0;
15}
16
17/// Returns the coprocessor (in this case, syscore) command buffer pointer 12/// Returns the coprocessor (in this case, syscore) command buffer pointer
18Addr GetThreadCommandBuffer() { 13Addr GetThreadCommandBuffer() {
19 // Called on insruction: mrc p15, 0, r0, c13, c0, 3 14 // Called on insruction: mrc p15, 0, r0, c13, c0, 3
20 return Memory::KERNEL_MEMORY_VADDR; 15 return Memory::KERNEL_MEMORY_VADDR;
21} 16}
22 17
23/// Call an MCR (move to coprocessor from ARM register) instruction in HLE
24s32 CallMCR(u32 instruction, u32 value) {
25 CoprocessorOperation operation = (CoprocessorOperation)((instruction >> 20) & 0xFF);
26 ERROR_LOG(OSHLE, "unimplemented MCR instruction=0x%08X, operation=%02X, value=%08X",
27 instruction, operation, value);
28 return 0;
29}
30
31/// Call an MRC (move to ARM register from coprocessor) instruction in HLE 18/// Call an MRC (move to ARM register from coprocessor) instruction in HLE
32s32 CallMRC(u32 instruction) { 19s32 CallMRC(u32 instruction) {
33 CoprocessorOperation operation = (CoprocessorOperation)((instruction >> 20) & 0xFF); 20 CoprocessorOperation operation = (CoprocessorOperation)((instruction >> 20) & 0xFF);
34 21
35 switch (operation) { 22 switch (operation) {
36 23
37 case DATA_SYNCHRONIZATION_BARRIER:
38 return DataSynchronizationBarrier();
39
40 case CALL_GET_THREAD_COMMAND_BUFFER: 24 case CALL_GET_THREAD_COMMAND_BUFFER:
41 return GetThreadCommandBuffer(); 25 return GetThreadCommandBuffer();
42 26
43 default: 27 default:
44 ERROR_LOG(OSHLE, "unimplemented MRC instruction 0x%08X", instruction); 28 //DEBUG_LOG(OSHLE, "unknown MRC call 0x%08X", instruction);
45 break; 29 break;
46 } 30 }
47 return 0; 31 return -1;
48} 32}
49 33
50} // namespace 34} // namespace