MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / cpuUpdateOperationMode

Function cpuUpdateOperationMode

pcsx2/COP0.cpp:10–21  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
23void WriteCP0Status(u32 value)
24{

Callers 2

cpuExceptionFunction · 0.85
ERETFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected