From: Ed Maste Date: Tue, 4 Oct 2016 20:02:49 +0000 (-0400) Subject: bsd-user: fix FreeBSD build after d148d90e X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=48f592118ab42f83a1a7561c4bfd2b72a100f241;p=qemu.git bsd-user: fix FreeBSD build after d148d90e Signed-off-by: Ed Maste Message-id: 1475611369-74971-1-git-send-email-emaste@freebsd.org Signed-off-by: Peter Maydell --- diff --git a/bsd-user/main.c b/bsd-user/main.c index d803d3e10c..d8367bda46 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) {