[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 13/73] alpha: convert to helper_cpu_halted_set
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH v6 13/73] alpha: convert to helper_cpu_halted_set |
Date: |
Tue, 29 Jan 2019 19:47:11 -0500 |
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
---
target/alpha/translate.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/target/alpha/translate.c b/target/alpha/translate.c
index 9d8f9b3eea..a75413e9b5 100644
--- a/target/alpha/translate.c
+++ b/target/alpha/translate.c
@@ -1226,8 +1226,7 @@ static DisasJumpType gen_call_pal(DisasContext *ctx, int
palcode)
/* WTINT */
{
TCGv_i32 tmp = tcg_const_i32(1);
- tcg_gen_st_i32(tmp, cpu_env, -offsetof(AlphaCPU, env) +
- offsetof(CPUState, halted));
+ gen_helper_cpu_halted_set(cpu_env, tmp);
tcg_temp_free_i32(tmp);
}
tcg_gen_movi_i64(ctx->ir[IR_V0], 0);
@@ -1382,8 +1381,7 @@ static DisasJumpType gen_mtpr(DisasContext *ctx, TCGv vb,
int regno)
/* WAIT */
{
TCGv_i32 tmp = tcg_const_i32(1);
- tcg_gen_st_i32(tmp, cpu_env, -offsetof(AlphaCPU, env) +
- offsetof(CPUState, halted));
+ gen_helper_cpu_halted_set(cpu_env, tmp);
tcg_temp_free_i32(tmp);
}
return gen_excp(ctx, EXCP_HALTED, 0);
--
2.17.1
- [Qemu-devel] [PATCH v6 03/73] cpu: introduce cpu_mutex_lock/unlock, (continued)
- [Qemu-devel] [PATCH v6 03/73] cpu: introduce cpu_mutex_lock/unlock, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 04/73] cpu: make qemu_work_cond per-cpu, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 02/73] cpu: rename cpu->work_mutex to cpu->lock, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 08/73] tcg-runtime: define helper_cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 10/73] cris: convert to helper_cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 12/73] m68k: convert to helper_cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 06/73] cpu: introduce process_queued_cpu_work_locked, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 11/73] hppa: convert to helper_cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 01/73] cpu: convert queued work to a QSIMPLEQ, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 07/73] cpu: make per-CPU locks an alias of the BQL in TCG rr mode, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 13/73] alpha: convert to helper_cpu_halted_set,
Emilio G. Cota <=
- [Qemu-devel] [PATCH v6 15/73] cpu: define cpu_halted helpers, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 14/73] microblaze: convert to helper_cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 16/73] tcg-runtime: convert to cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 09/73] ppc: convert to helper_cpu_halted_set, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 18/73] ppc: convert to cpu_halted, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 22/73] m68k: convert to cpu_halted, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 24/73] riscv: convert to cpu_halted, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 26/73] sparc: convert to cpu_halted, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 21/73] lm32: convert to cpu_halted, Emilio G. Cota, 2019/01/29
- [Qemu-devel] [PATCH v6 23/73] mips: convert to cpu_halted, Emilio G. Cota, 2019/01/29