From 439bf1597b0c3c067c9aef40a65118550ff7a7bd Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 16 Aug 2021 13:46:37 -0700 Subject: [PATCH] DSPJitUtil: Remove redundant handling of ac0.h and ac1.h m_gpr.WriteReg calls PutReg which already handles the sign extension. --- Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp index 896fd30d40..4957947b40 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp @@ -109,12 +109,6 @@ void DSPEmitter::dsp_op_write_reg(int reg, Gen::X64Reg host_sreg) { switch (reg & 0x1f) { - // 8-bit sign extended registers. - case DSP_REG_ACH0: - case DSP_REG_ACH1: - m_gpr.WriteReg(reg, R(host_sreg)); - break; - // Stack registers. case DSP_REG_ST0: case DSP_REG_ST1: @@ -133,11 +127,6 @@ void DSPEmitter::dsp_op_write_reg_imm(int reg, u16 val) { switch (reg & 0x1f) { - // 8-bit sign extended registers. Should look at prod.h too... - case DSP_REG_ACH0: - case DSP_REG_ACH1: - m_gpr.WriteReg(reg, Imm16((u16)(s16)(s8)(u8)val)); - break; // Stack registers. case DSP_REG_ST0: case DSP_REG_ST1: