Skip to content

Commit 130beab

Browse files
committed
Re-insert code for tlbia
BeOS uses this as part of its boot handler.
1 parent a7170f4 commit 130beab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpu/ppc/ppcopcodes.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,6 +2018,12 @@ void dppc_interpreter::ppc_tlbia(uint32_t opcode) {
20182018
num_supervisor_instrs++;
20192019
#endif
20202020
/* placeholder */
2021+
if (ppc_state.msr & MSR::PR) {
2022+
ppc_exception_handler(Except_Type::EXC_PROGRAM, Exc_Cause::NOT_ALLOWED);
2023+
return;
2024+
}
2025+
2026+
LOG_F(ERROR, "tlbia needs to be implemented!");
20212027
}
20222028

20232029
void dppc_interpreter::ppc_tlbld(uint32_t opcode) {

0 commit comments

Comments
 (0)