Updates the CPU's mode of operation (either, Kernel, Supervisor, or User modes). Currently the different modes are not implemented. Given this function is called so much, it's commented out for now. (rama)
| 8 | // Currently the different modes are not implemented. |
| 9 | // Given this function is called so much, it's commented out for now. (rama) |
| 10 | __ri void cpuUpdateOperationMode() |
| 11 | { |
| 12 | |
| 13 | //u32 value = cpuRegs.CP0.n.Status.val; |
| 14 | |
| 15 | //if (value & 0x06 || |
| 16 | // (value & 0x18) == 0) { // Kernel Mode (KSU = 0 | EXL = 1 | ERL = 1)*/ |
| 17 | // memSetKernelMode(); // Kernel memory always |
| 18 | //} else { // User Mode |
| 19 | // memSetUserMode(); |
| 20 | //} |
| 21 | } |
| 22 | |
| 23 | void WriteCP0Status(u32 value) |
| 24 | { |
no outgoing calls
no test coverage detected