Add missing returns to mfspr + mtspr

This commit is contained in:
dingusdev
2025-09-15 07:54:15 -07:00
parent 049c843891
commit a6b6fc1b61
+2
View File
@@ -931,6 +931,7 @@ void dppc_interpreter::ppc_mfspr(uint32_t opcode) {
#endif
if (ppc_state.msr & MSR::PR) {
ppc_exception_handler(Except_Type::EXC_PROGRAM, Exc_Cause::NOT_ALLOWED);
return;
}
}
@@ -1002,6 +1003,7 @@ void dppc_interpreter::ppc_mtspr(uint32_t opcode) {
#endif
if (ppc_state.msr & MSR::PR) {
ppc_exception_handler(Except_Type::EXC_PROGRAM, Exc_Cause::NOT_ALLOWED);
return;
}
}