mirror of https://github.com/xemu-project/xemu.git
bsd-user/arm/target_arch_cpu.h: Dummy target_cpu_loop implementation
Add a boiler plate CPU loop that does nothing except return an error for all traps. Signed-off-by: Sean Bruno <sbruno@FreeBSD.org> Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Kyle Evans <kevans@FreeBSD.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
e17d4c9a37
commit
06efe3bfce
|
@ -36,6 +36,28 @@ static inline void target_cpu_init(CPUARMState *env,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void target_cpu_loop(CPUARMState *env)
|
||||||
|
{
|
||||||
|
int trapnr;
|
||||||
|
target_siginfo_t info;
|
||||||
|
CPUState *cs = env_cpu(env);
|
||||||
|
|
||||||
|
for (;;) {
|
||||||
|
cpu_exec_start(cs);
|
||||||
|
trapnr = cpu_exec(cs);
|
||||||
|
cpu_exec_end(cs);
|
||||||
|
process_queued_cpu_work(cs);
|
||||||
|
switch (trapnr) {
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
|
||||||
|
trapnr);
|
||||||
|
cpu_dump_state(cs, stderr, 0);
|
||||||
|
abort();
|
||||||
|
} /* switch() */
|
||||||
|
process_pending_signals(env);
|
||||||
|
} /* for (;;) */
|
||||||
|
}
|
||||||
|
|
||||||
static inline void target_cpu_clone_regs(CPUARMState *env, target_ulong newsp)
|
static inline void target_cpu_clone_regs(CPUARMState *env, target_ulong newsp)
|
||||||
{
|
{
|
||||||
if (newsp) {
|
if (newsp) {
|
||||||
|
|
Loading…
Reference in New Issue