[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 5/8] target/alpha: Fix temp leak in gen_mtpr
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 5/8] target/alpha: Fix temp leak in gen_mtpr |
Date: |
Tue, 18 Jul 2017 18:45:19 -1000 |
Tested-by: Emilio G. Cota <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/alpha/translate.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/target/alpha/translate.c b/target/alpha/translate.c
index d684a7b..5e37b1a 100644
--- a/target/alpha/translate.c
+++ b/target/alpha/translate.c
@@ -1392,7 +1392,6 @@ static ExitStatus gen_mfpr(DisasContext *ctx, TCGv va,
int regno)
static ExitStatus gen_mtpr(DisasContext *ctx, TCGv vb, int regno)
{
- TCGv tmp;
int data;
switch (regno) {
@@ -1408,9 +1407,12 @@ static ExitStatus gen_mtpr(DisasContext *ctx, TCGv vb,
int regno)
case 253:
/* WAIT */
- tmp = tcg_const_i64(1);
- tcg_gen_st32_i64(tmp, cpu_env, -offsetof(AlphaCPU, env) +
- offsetof(CPUState, halted));
+ {
+ TCGv_i32 tmp = tcg_const_i32(1);
+ tcg_gen_st_i32(tmp, cpu_env, -offsetof(AlphaCPU, env) +
+ offsetof(CPUState, halted));
+ tcg_temp_free_i32(tmp);
+ }
return gen_excp(ctx, EXCP_HALTED, 0);
case 252:
--
2.9.4
- [Qemu-devel] [PULL 0/8] target/alpha cleanups, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 1/8] target/alpha: Remove amask from tb->flags, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 4/8] target/alpha: Fix temp leak in gen_bcond, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 2/8] target/alpha: Copy tb->flags into DisasContext, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 3/8] target/alpha: Merge several flag bytes into ENV->FLAGS, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 6/8] target/alpha: Fix temp leak in gen_call_pal, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 5/8] target/alpha: Fix temp leak in gen_mtpr,
Richard Henderson <=
- [Qemu-devel] [PULL 7/8] target/alpha: Fix temp leak in gen_fbcond, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 8/8] target/alpha: Log temp leaks, Richard Henderson, 2017/07/19
- Re: [Qemu-devel] [PULL 0/8] target/alpha cleanups, Peter Maydell, 2017/07/19
- Re: [Qemu-devel] [PULL 0/8] target/alpha cleanups, Peter Maydell, 2017/07/19