diff options
author | Ed Maste <emaste@freebsd.org> | 2016-10-04 16:02:49 -0400 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-10-07 15:17:53 +0100 |
commit | 48f592118ab42f83a1a7561c4bfd2b72a100f241 (patch) | |
tree | 988770ee8467efcad8ac78cdaa497c5ce3c710a5 /bsd-user/main.c | |
parent | e902754e3d0890945ddcc1b33748ed73762ddb8d (diff) |
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/main.c')
-rw-r--r-- | bsd-user/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |