diff mbox

bsd-user: fix FreeBSD build after d148d90e

Message ID 1475611369-74971-1-git-send-email-emaste@freebsd.org (mailing list archive)
State New, archived
Headers show

Commit Message

Ed Maste Oct. 4, 2016, 8:02 p.m. UTC
Signed-off-by: Ed Maste <emaste@freebsd.org>
---
 bsd-user/main.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Peter Maydell Oct. 7, 2016, 2:51 p.m. UTC | #1
On 4 October 2016 at 21:02, Ed Maste <emaste@freebsd.org> wrote:
> Signed-off-by: Ed Maste <emaste@freebsd.org>
> ---
>  bsd-user/main.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>

Applied, thanks.

-- PMM
diff mbox

Patch

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)
 {