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 <email address hidden>
Suggested-by: Richard Henderson <email address hidden>
Signed-off-by: Alex Bennée <email address hidden>
---
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);
}
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 <email address hidden> sh4/translate. c | 2 +-
Suggested-by: Richard Henderson <email address hidden>
Signed-off-by: Alex Bennée <email address hidden>
---
target/
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ sh4/translate. c b/target/ sh4/translate. c .b4b5c822d0 100644 sh4/translate. c sh4/translate. c gusa(DisasConte xt *ctx, CPUSH4State *env, int *pmax_insns)
index 703020fe87.
--- a/target/
+++ b/target/
@@ -2189,7 +2189,7 @@ static int decode_
}
/* If op_src is not a valid register, then op_arg was a constant. */ UNUSED( op_arg) ) {
tcg_temp_ free_i32( op_arg) ;
- if (op_src < 0) {
+ if (op_src < 0 && !TCGV_IS_
}
--
2.15.1