qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH] bsd-user: fix FreeBSD build after d148d90e


From: Ed Maste
Subject: [Qemu-trivial] [PATCH] bsd-user: fix FreeBSD build after d148d90e
Date: Tue, 4 Oct 2016 16:02:49 -0400

Signed-off-by: Ed Maste <address@hidden>
---
 bsd-user/main.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]