target/sh4/translate.c: fix TCG leak during gusa sequence
PATCH 1/1 target/sh4/translate.c: fix TCG leak during gusa sequence
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.
--- target/sh4/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/sh4/translate.c +1 -1
@@ -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); }
Signature · 1 line
2.15.1
Quoted 4 lines · Alex Bennée
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
Quoted 8 lines · Peter Maydell
Quoted 4 lines · Alex Bennée
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