[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/6] target/m68k: Fix a tcg_temp leak
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 3/6] target/m68k: Fix a tcg_temp leak |
Date: |
Sun, 10 Mar 2019 01:34:25 +0100 |
The function gen_get_ccr() returns a tcg_temp created with
tcg_temp_new(). Free it with tcg_temp_free().
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
Laurent/Richard, feel free to squash this with the next patch, but
IMHO having it split as a previous step makes the next patch easier
to review.
---
target/m68k/translate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/m68k/translate.c b/target/m68k/translate.c
index 55766fd7ef..ea95d55a11 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -2224,6 +2224,7 @@ static TCGv gen_get_sr(DisasContext *s)
sr = tcg_temp_new();
tcg_gen_andi_i32(sr, QREG_SR, 0xffe0);
tcg_gen_or_i32(sr, sr, ccr);
+ tcg_temp_free(ccr);
return sr;
}
--
2.19.1
- [Qemu-devel] [PATCH 0/6] target/m68k: Optimize few instructions using deposit/extraxt_i32(), Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 1/6] target/m68k: Reduce the l1 TCGLabel scope, Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 2/6] target/m68k: Optimize the partset instruction using deposit_i32(), Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 3/6] target/m68k: Fix a tcg_temp leak,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH 4/6] target/m68k: Optimize get_sr() using deposit_i32(), Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 6/6] target/m68k: Reduce the scope of the 'zero' tcg_temp, Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 5/6] target/m68k: Optimize rotate_x() using extract_i32(), Philippe Mathieu-Daudé, 2019/03/09