aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2016-10-04 16:02:49 -0400
committerPeter Maydell <peter.maydell@linaro.org>2016-10-07 15:17:53 +0100
commit48f592118ab42f83a1a7561c4bfd2b72a100f241 (patch)
tree988770ee8467efcad8ac78cdaa497c5ce3c710a5 /bsd-user
parente902754e3d0890945ddcc1b33748ed73762ddb8d (diff)
downloadqemu-48f592118ab42f83a1a7561c4bfd2b72a100f241.zip
qemu-48f592118ab42f83a1a7561c4bfd2b72a100f241.tar.gz
qemu-48f592118ab42f83a1a7561c4bfd2b72a100f241.tar.bz2
bsd-user: fix FreeBSD build after d148d90e
Signed-off-by: Ed Maste <emaste@freebsd.org> Message-id: 1475611369-74971-1-git-send-email-emaste@freebsd.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index d803d3e..d8367bd 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -695,6 +695,16 @@ static void usage(void)
THREAD CPUState *thread_cpu;
+bool qemu_cpu_is_self(CPUState *cpu)
+{
+ return thread_cpu == cpu;
+}
+
+void qemu_cpu_kick(CPUState *cpu)
+{
+ cpu_exit(cpu);
+}
+
/* Assumes contents are already zeroed. */
void init_task_state(TaskState *ts)
{