]> git.proxmox.com Git - qemu.git/commitdiff
target-mips: fix DSP loads with rd = 0
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 1 Jan 2013 17:02:22 +0000 (18:02 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 31 Jan 2013 22:29:27 +0000 (23:29 +0100)
When rd is 0, which still need to do the actually load to possibly
generate a TLB exception.

Reviewed-by: Eric Johnson <ericj@mips.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c

index 206ba83401b835b32841d24eaad9981d8da34497..a9368294f3e7d178f89603e009f0aafc6f429867 100644 (file)
@@ -12657,11 +12657,6 @@ static void gen_mipsdsp_ld(CPUMIPSState *env, DisasContext *ctx, uint32_t opc,
     const char *opn = "ldx";
     TCGv t0;
 
-    if (rd == 0) {
-        MIPS_DEBUG("NOP");
-        return;
-    }
-
     check_dsp(ctx);
     t0 = tcg_temp_new();