From patchwork Tue Oct 4 20:02:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed Maste X-Patchwork-Id: 9362243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B3B89600C8 for ; Tue, 4 Oct 2016 20:03:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B78928B27 for ; Tue, 4 Oct 2016 20:03:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9039928B58; Tue, 4 Oct 2016 20:03:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8442628B27 for ; Tue, 4 Oct 2016 20:03:17 +0000 (UTC) Received: from localhost ([::1]:45052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brVvo-0003yr-9Q for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Oct 2016 16:03:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brVvY-0003yf-GD for qemu-devel@nongnu.org; Tue, 04 Oct 2016 16:03:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brVvU-0003o7-E9 for qemu-devel@nongnu.org; Tue, 04 Oct 2016 16:03:00 -0400 Received: from [72.143.111.78] (port=59063 helo=freebsd.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brVvU-0003mZ-7z for qemu-devel@nongnu.org; Tue, 04 Oct 2016 16:02:56 -0400 Received: from emaste (uid 1001) (envelope-from emaste@freebsd.org) id 9cef4 by freebsd.org (DragonFly Mail Agent v0.10); Tue, 04 Oct 2016 16:02:54 -0400 From: Ed Maste To: qemu-devel@nongnu.org Date: Tue, 4 Oct 2016 16:02:49 -0400 Message-Id: <1475611369-74971-1-git-send-email-emaste@freebsd.org> X-Mailer: git-send-email 2.8.1 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 72.143.111.78 Subject: [Qemu-devel] [PATCH] bsd-user: fix FreeBSD build after d148d90e X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Ed Maste Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ed Maste --- 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) {