| 1706 | } |
| 1707 | |
| 1708 | void N64Recomp::LiveGenerator::emit_cop0_status_write(int reg) const { |
| 1709 | sljit_sw src; |
| 1710 | sljit_sw srcw; |
| 1711 | get_gpr_values(reg, src, srcw); |
| 1712 | |
| 1713 | // Load ctx and the input register value into R0 and R1 |
| 1714 | sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R0, 0, Registers::ctx, 0); |
| 1715 | sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R1, 0, src, srcw); |
| 1716 | |
| 1717 | // Call cop0_status_write. |
| 1718 | sljit_emit_icall(compiler, SLJIT_CALL, SLJIT_ARGS2V(P,32), SLJIT_IMM, sljit_sw(inputs.cop0_status_write)); |
| 1719 | } |
| 1720 | |
| 1721 | void N64Recomp::LiveGenerator::emit_cop1_cs_read(int reg) const { |
| 1722 | // Skip the read if the target is the zero register. |
nothing calls this directly
no test coverage detected