mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-26 11:26:16 +00:00
Add missing returns to mfspr + mtspr
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user