2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

arm: The CP15 Main ID register is not writeable

This commit is contained in:
Lioncash 2015-02-26 09:26:51 -05:00
parent c7dac73b0c
commit 8812d2fbdb

View file

@ -4709,9 +4709,7 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
DEBUG_MSG; DEBUG_MSG;
} else { } else {
if (inst_cream->cp_num == 15) { if (inst_cream->cp_num == 15) {
if(CRn == 0 && OPCODE_2 == 0 && CRm == 0) { if (CRn == 1 && CRm == 0 && OPCODE_2 == 0) {
CP15_REG(CP15_MAIN_ID) = RD;
} else if(CRn == 1 && CRm == 0 && OPCODE_2 == 0) {
CP15_REG(CP15_CONTROL) = RD; CP15_REG(CP15_CONTROL) = RD;
} else if (CRn == 1 && CRm == 0 && OPCODE_2 == 1) { } else if (CRn == 1 && CRm == 0 && OPCODE_2 == 1) {
CP15_REG(CP15_AUXILIARY_CONTROL) = RD; CP15_REG(CP15_AUXILIARY_CONTROL) = RD;