qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Aurelien Jarno" <aurelien@aurel32.net>
Subject: [Qemu-devel] [PULL 1/6] target/sh4: add missing tcg_temp_free() in _decode_opc()
Date: Mon, 18 Dec 2017 23:40:25 +0100	[thread overview]
Message-ID: <20171218224030.26726-2-aurelien@aurel32.net> (raw)
In-Reply-To: <20171218224030.26726-1-aurelien@aurel32.net>

From: Philippe Mathieu-Daudé <f4bug@amsat.org>

missed in c55497ecb8c and 852d481faf7.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20171205170013.22337-3-f4bug@amsat.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 target/sh4/translate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 8569179883..f56808b45d 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;
-- 
2.15.1

  reply	other threads:[~2017-12-18 22:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 22:40 [Qemu-devel] [PULL 0/6] Queued target/sh4 patches Aurelien Jarno
2017-12-18 22:40 ` Aurelien Jarno [this message]
2017-12-18 22:40 ` [Qemu-devel] [PULL 2/6] target/sh4: fix TCG leak during gusa sequence Aurelien Jarno
2017-12-18 22:40 ` [Qemu-devel] [PULL 3/6] target/sh4: Use cmpxchg for movco when parallel_cpus Aurelien Jarno
2017-12-18 22:40 ` [Qemu-devel] [PULL 4/6] target/sh4: Convert to DisasJumpType Aurelien Jarno
2017-12-18 22:40 ` [Qemu-devel] [PULL 5/6] target/sh4: Do not singlestep after exceptions Aurelien Jarno
2017-12-18 22:40 ` [Qemu-devel] [PULL 6/6] target/sh4: Convert to DisasContextBase Aurelien Jarno
2017-12-19 21:16 ` [Qemu-devel] [PULL 0/6] Queued target/sh4 patches Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171218224030.26726-2-aurelien@aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=f4bug@amsat.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).