All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for 2.11] target/sh4/translate.c: fix TCG leak during gusa sequence
@ 2017-12-06 15:28 Alex Bennée
  2017-12-06 19:05 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Bennée @ 2017-12-06 15:28 UTC (permalink / raw)
  To: peter.maydell; +Cc: qemu-devel, Alex Bennée, qemu-stable, Aurelien Jarno

This fixes bug #1735384 while running java under qemu-sh4. When debug
was enabled it showed a problem with TCG temps. Once fixed I was able
to run java -version normally.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: qemu-stable@nongnu.org
---
 target/sh4/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 703020fe87..b4b5c822d0 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -2189,7 +2189,7 @@ static int decode_gusa(DisasContext *ctx, CPUSH4State *env, int *pmax_insns)
     }
 
     /* If op_src is not a valid register, then op_arg was a constant.  */
-    if (op_src < 0) {
+    if (op_src < 0 && !TCGV_IS_UNUSED(op_arg)) {
         tcg_temp_free_i32(op_arg);
     }
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH for 2.11] target/sh4/translate.c: fix TCG leak during gusa sequence
  2017-12-06 15:28 [Qemu-devel] [PATCH for 2.11] target/sh4/translate.c: fix TCG leak during gusa sequence Alex Bennée
@ 2017-12-06 19:05 ` Peter Maydell
  2017-12-08 14:44   ` Alex Bennée
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2017-12-06 19:05 UTC (permalink / raw)
  To: Alex Bennée; +Cc: QEMU Developers, qemu-stable, Aurelien Jarno

On 6 December 2017 at 15:28, Alex Bennée <alex.bennee@linaro.org> wrote:
> This fixes bug #1735384 while running java under qemu-sh4. When debug
> was enabled it showed a problem with TCG temps. Once fixed I was able
> to run java -version normally.
>

I don't think this merits holding up 2.11, which has already
had what I hope is its final release candidate.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH for 2.11] target/sh4/translate.c: fix TCG leak during gusa sequence
  2017-12-06 19:05 ` Peter Maydell
@ 2017-12-08 14:44   ` Alex Bennée
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2017-12-08 14:44 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers, qemu-stable, Aurelien Jarno


Peter Maydell <peter.maydell@linaro.org> writes:

> On 6 December 2017 at 15:28, Alex Bennée <alex.bennee@linaro.org> wrote:
>> This fixes bug #1735384 while running java under qemu-sh4. When debug
>> was enabled it showed a problem with TCG temps. Once fixed I was able
>> to run java -version normally.
>>
>
> I don't think this merits holding up 2.11, which has already
> had what I hope is its final release candidate.

Fair enough.

Aurelien,

Are you going to pick this patch up via your tree for the post-release fixes?

--
Alex Bennée

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-08 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 15:28 [Qemu-devel] [PATCH for 2.11] target/sh4/translate.c: fix TCG leak during gusa sequence Alex Bennée
2017-12-06 19:05 ` Peter Maydell
2017-12-08 14:44   ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.