[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 17/74] hw/semihosting: convert to cpu_halted_set
From: |
Robert Foley |
Subject: |
[PATCH v8 17/74] hw/semihosting: convert to cpu_halted_set |
Date: |
Thu, 26 Mar 2020 15:30:59 -0400 |
Signed-off-by: Robert Foley <address@hidden>
---
hw/semihosting/console.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/semihosting/console.c b/hw/semihosting/console.c
index 6346bd7f50..f70085f3c1 100644
--- a/hw/semihosting/console.c
+++ b/hw/semihosting/console.c
@@ -131,7 +131,7 @@ static void console_wake_up(gpointer data, gpointer
user_data)
{
CPUState *cs = (CPUState *) data;
/* cpu_handle_halt won't know we have work so just unbung here */
- cs->halted = 0;
+ cpu_halted_set(cs, 0);
qemu_cpu_kick(cs);
}
@@ -154,7 +154,7 @@ target_ulong qemu_semihosting_console_inc(CPUArchState *env)
g_assert(current_cpu);
if (fifo8_is_empty(&c->fifo)) {
c->sleeping_cpus = g_slist_prepend(c->sleeping_cpus, current_cpu);
- current_cpu->halted = 1;
+ cpu_halted_set(current_cpu, 1);
current_cpu->exception_index = EXCP_HALTED;
cpu_loop_exit(current_cpu);
/* never returns */
--
2.17.1
- [PATCH v8 08/74] tcg-runtime: define helper_cpu_halted_set, (continued)
- [PATCH v8 08/74] tcg-runtime: define helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 09/74] ppc: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 07/74] cpu: make per-CPU locks an alias of the BQL in TCG rr mode, Robert Foley, 2020/03/26
- [PATCH v8 10/74] cris: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 11/74] hppa: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 12/74] m68k: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 13/74] alpha: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 14/74] microblaze: convert to helper_cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 15/74] cpu: define cpu_halted helpers, Robert Foley, 2020/03/26
- [PATCH v8 16/74] tcg-runtime: convert to cpu_halted_set, Robert Foley, 2020/03/26
- [PATCH v8 17/74] hw/semihosting: convert to cpu_halted_set,
Robert Foley <=
- [PATCH v8 18/74] arm: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 20/74] sh4: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 19/74] ppc: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 21/74] i386: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 23/74] m68k: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 22/74] lm32: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 24/74] mips: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 25/74] riscv: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 28/74] xtensa: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 27/74] sparc: convert to cpu_halted, Robert Foley, 2020/03/26