Skip to content

Commit 79826f9

Browse files
committed
target/hppa: Free some temps in do_sub
Two temps allocated but not freed. Do enough subtractions within a single TB and one can run out of temps entirely. Fixes: b216745 ("target-hppa: Implement basic arithmetic") Buglink: https://bugs.launchpad.net/qemu/+bug/1880287 Tested-by: Sven Schnelle <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent 570ef30 commit 79826f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

target/hppa/translate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,8 @@ static void do_sub(DisasContext *ctx, unsigned rt, TCGv_reg in1,
12941294
save_or_nullify(ctx, cpu_psw_cb_msb, cb_msb);
12951295
save_gpr(ctx, rt, dest);
12961296
tcg_temp_free(dest);
1297+
tcg_temp_free(cb);
1298+
tcg_temp_free(cb_msb);
12971299

12981300
/* Install the new nullification. */
12991301
cond_free(&ctx->null_cond);

0 commit comments

Comments
 (0)