Fix RTC upper

Fixed a typo that caused rtc@ to always return 0 for the upper 32 bits (represents seconds).
The problem could cause the following to hang on Power Mac 7500:
cr 2000 0 do get-msecs u. 1 ms loop
This commit is contained in:
joevt 2022-09-14 00:33:44 -07:00
parent 467e4df7dc
commit ce925f5e56

View File

@ -883,7 +883,7 @@ void dppc_interpreter::ppc_mfspr() {
ppc_state.spr[SPR::RTCL_U] = calc_rtcl_value();
break;
case SPR::RTCU_U:
ppc_state.spr[SPR::RTCL_U] = rtc_hi;
ppc_state.spr[SPR::RTCU_U] = rtc_hi;
break;
}