]> git.proxmox.com Git - qemu.git/blobdiff - target-mips/translate.c
target-mips: Sign-extend the result of LWR
[qemu.git] / target-mips / translate.c
index 8520d285193f493f7d359f9bbee5d0b7c7632cad..e58d916b040faa50d689b663c48dd4b2388436a0 100644 (file)
@@ -1745,6 +1745,7 @@ static void gen_ld(DisasContext *ctx, uint32_t opc,
         tcg_temp_free(t2);
         tcg_gen_or_tl(t0, t0, t1);
         tcg_temp_free(t1);
+        tcg_gen_ext32s_tl(t0, t0);
         gen_store_gpr(t0, rt);
         opn = "lwr";
         break;