[qemu-xen master] target/sh4: add missing tcg_temp_free() in _decode_opc()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[qemu-xen master] target/sh4: add missing tcg_temp_free() in _decode_opc()

patchbot
commit 68d7e24475dc38195eaf9722c3a967aac5cb03bb
Author:     Philippe Mathieu-Daudé <[hidden email]>
AuthorDate: Tue Dec 5 14:00:13 2017 -0300
Commit:     Michael Roth <[hidden email]>
CommitDate: Sun Feb 11 21:06:46 2018 -0600

    target/sh4: add missing tcg_temp_free() in _decode_opc()
   
    missed in c55497ecb8c and 852d481faf7.
   
    Signed-off-by: Philippe Mathieu-Daudé <[hidden email]>
    Message-Id: <[hidden email]>
    Reviewed-by: Aurelien Jarno <[hidden email]>
    Signed-off-by: Aurelien Jarno <[hidden email]>
    (cherry picked from commit e691e0ed135ac989221683ca9560c34d357edc57)
    Signed-off-by: Michael Roth <[hidden email]>
---
 target/sh4/translate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index b4b5c82..6098bc8 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -601,6 +601,7 @@ static void _decode_opc(DisasContext * ctx)
     tcg_gen_subi_i32(addr, REG(B11_8), 4);
             tcg_gen_qemu_st_i32(REG(B7_4), addr, ctx->memidx, MO_TEUL);
     tcg_gen_mov_i32(REG(B11_8), addr);
+        tcg_temp_free(addr);
  }
  return;
     case 0x6004: /* mov.b @Rm+,Rn */
@@ -1524,6 +1525,7 @@ static void _decode_opc(DisasContext * ctx)
             tcg_gen_qemu_ld_i32(val, REG(B11_8), ctx->memidx, MO_TEUL);
             gen_helper_movcal(cpu_env, REG(B11_8), val);
             tcg_gen_qemu_st_i32(REG(0), REG(B11_8), ctx->memidx, MO_TEUL);
+            tcg_temp_free(val);
         }
         ctx->has_movcal = 1;
  return;
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog