Skip to content

Commit 769ef49

Browse files
joevtdingusdev
authored andcommitted
ppcopcodes: Implement mfspr for tbl_u and tbu_u.
1 parent e0677a8 commit 769ef49

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpu/ppc/ppcopcodes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,13 +973,15 @@ void dppc_interpreter::ppc_mfspr(uint32_t opcode) {
973973
ppc_state.gpr[reg_d] = ppc_state.spr[SPR::DEC_S] = val;
974974
break;
975975
}
976+
case SPR::TBL_U:
976977
case SPR::TBL_S: {
977978
uint64_t tbr_value = calc_tbr_value();
978979
ppc_state.gpr[reg_d] =
979980
ppc_state.spr[TBL_S] = uint32_t(tbr_value);
980981
ppc_state.spr[TBU_S] = uint32_t(tbr_value >> 32);
981982
break;
982983
}
984+
case SPR::TBU_U:
983985
case SPR::TBU_S: {
984986
uint64_t tbr_value = calc_tbr_value();
985987
ppc_state.gpr[reg_d] =

0 commit comments

Comments
 (0)