| 610 | } |
| 611 | |
| 612 | void LWU() |
| 613 | { |
| 614 | u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_; |
| 615 | |
| 616 | if (addr & 3) [[unlikely]] |
| 617 | RaiseAddressError(addr, false); |
| 618 | |
| 619 | u32 temp = memRead32(addr); |
| 620 | |
| 621 | if (!_Rt_) return; |
| 622 | cpuRegs.GPR.r[_Rt_].UD[0] = temp; |
| 623 | } |
| 624 | |
| 625 | static const u32 LWL_MASK[4] = { 0xffffff, 0x0000ffff, 0x000000ff, 0x00000000 }; |
| 626 | static const u32 LWR_MASK[4] = { 0x000000, 0xff000000, 0xffff0000, 0xffffff00 }; |
nothing calls this directly
no test coverage detected