Message ID | 1475611369-74971-1-git-send-email-emaste@freebsd.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 --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) {
Signed-off-by: Ed Maste <emaste@freebsd.org> --- bsd-user/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+)