[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 28/74] xtensa: convert to cpu_halted
From: |
Robert Foley |
Subject: |
[PATCH v8 28/74] xtensa: convert to cpu_halted |
Date: |
Thu, 26 Mar 2020 15:31:10 -0400 |
From: "Emilio G. Cota" <address@hidden>
Cc: Max Filippov <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
Signed-off-by: Robert Foley <address@hidden>
---
target/xtensa/cpu.c | 2 +-
target/xtensa/exc_helper.c | 2 +-
target/xtensa/helper.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c
index 82c2ee0679..fda4a73722 100644
--- a/target/xtensa/cpu.c
+++ b/target/xtensa/cpu.c
@@ -102,7 +102,7 @@ static void xtensa_cpu_reset(DeviceState *dev)
#ifndef CONFIG_USER_ONLY
reset_mmu(env);
- s->halted = env->runstall;
+ cpu_halted_set(s, env->runstall);
#endif
}
diff --git a/target/xtensa/exc_helper.c b/target/xtensa/exc_helper.c
index 601341d13a..01d1e56feb 100644
--- a/target/xtensa/exc_helper.c
+++ b/target/xtensa/exc_helper.c
@@ -115,7 +115,7 @@ void HELPER(waiti)(CPUXtensaState *env, uint32_t pc,
uint32_t intlevel)
return;
}
- cpu->halted = 1;
+ cpu_halted_set(cpu, 1);
HELPER(exception)(env, EXCP_HLT);
}
diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c
index 376a61f339..d5d5ad5899 100644
--- a/target/xtensa/helper.c
+++ b/target/xtensa/helper.c
@@ -327,7 +327,7 @@ void xtensa_runstall(CPUXtensaState *env, bool runstall)
CPUState *cpu = env_cpu(env);
env->runstall = runstall;
- cpu->halted = runstall;
+ cpu_halted_set(cpu, runstall);
if (runstall) {
cpu_interrupt(cpu, CPU_INTERRUPT_HALT);
} else {
--
2.17.1
- [PATCH v8 16/74] tcg-runtime: convert to cpu_halted_set, (continued)
- [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, 2020/03/26
- [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 <=
- [PATCH v8 27/74] sparc: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 26/74] s390x: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 34/74] ppc: use cpu_reset_interrupt, Robert Foley, 2020/03/26
- [PATCH v8 36/74] i386: use cpu_reset_interrupt, Robert Foley, 2020/03/26
- [PATCH v8 39/74] arm: convert to cpu_interrupt_request, Robert Foley, 2020/03/26
- [PATCH v8 29/74] gdbstub: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 30/74] openrisc: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 31/74] cpu-exec: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 32/74] cpu: convert to cpu_halted, Robert Foley, 2020/03/26
- [PATCH v8 33/74] cpu: define cpu_interrupt_request helpers, Robert Foley, 2020/03/26