From: Warner Losh<imp@FreeBSD.org>
Move cpu_loop() into target_cpu_loop(), and put that in
target_arch_cpu.h for each architecture.
Signed-off-by: Stacey Son<sson@FreeBSD.org>
Signed-off-by: Warner Losh<imp@bsdimp.com>
---
bsd-user/i386/target_arch_cpu.c | 1 +
bsd-user/i386/target_arch_cpu.h | 209 ++++++++++++++++++++
bsd-user/main.c | 317 ++----------------------------
bsd-user/qemu.h | 1 +
bsd-user/x86_64/target_arch_cpu.c | 1 +
bsd-user/x86_64/target_arch_cpu.h | 247 +++++++++++++++++++++++
6 files changed, 473 insertions(+), 303 deletions(-)
create mode 100644 bsd-user/i386/target_arch_cpu.h
create mode 100644 bsd-user/x86_64/target_arch_cpu.h