From patchwork Mon Oct 30 03:05:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 831845 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UtMJBmPM"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yQKHp2hmXz9t2r for ; Mon, 30 Oct 2017 14:11:02 +1100 (AEDT) Received: from localhost ([::1]:38489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e90Tc-0006QH-D9 for incoming@patchwork.ozlabs.org; Sun, 29 Oct 2017 23:11:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e90QG-0004FV-IN for qemu-devel@nongnu.org; Sun, 29 Oct 2017 23:07:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e90QC-0007DG-ME for qemu-devel@nongnu.org; Sun, 29 Oct 2017 23:07:32 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:53056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e90QC-0007Co-Hv for qemu-devel@nongnu.org; Sun, 29 Oct 2017 23:07:28 -0400 Received: by mail-qk0-x241.google.com with SMTP id b15so14491807qkg.9 for ; Sun, 29 Oct 2017 20:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=amr8/5dlddto3SFO8RjfzLDXNXOehh5r5/JWLFwJDU4=; b=UtMJBmPMtnkGmkE5JKDuSdtrg6heMJp0viRq1jKtYNEDNIOr/cAcUGh/EIFhLh5fIV iRRfR5/PSEduvx0OBauK8w3o6s0kcuAJlmEjsEKQtrUbL8SYOPNbP/xwscbG+FCaVi15 0b8ek/GMZf3xiS5lZ43Mz6easzjkF+XIYcR5bhdtY0NNvz1OI6AiOeI0LB9ZBJFOVqw8 4NwAGSxJqGHev+2qxXZ4RyJlSNo0Iy2vEfqXt2nZK7xhmq+tET7yY6yQuI/TYhClhp9Q 7THAPRXss44k7MSNs6aGB8dA+Otf2trHcXcx0ouPJZrUh1xTW/9xic32q8pYubUW5Awo rLsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=amr8/5dlddto3SFO8RjfzLDXNXOehh5r5/JWLFwJDU4=; b=OwYiDuzLCkvpSslTAcmXH2hhVGLESjTp/BrYXRNCxDGx5s2hiMLCw5AdCD7Oj+myrn 7MVNZ74TE0Cl5M9GXNaQPnsHbKYcuT1eUyzZviDOFwbaB1NNLz7PUrekZ5om3CY3nvjd OtDu7rebT0e6zVy+WodZVgYrSBBpjfmuyiJVwt9pU6zuK1/UWn2j0oC5xSxp7wE2JyBU tiu3iSmFUoRp9tMZiVGFPZ04FyxhQ2pa//aNPUV7gT5PMOXNC/IUIo71yYvr1MCHvP58 13YCzgQWzMwAXzkpPdxBGq7ZlhN3OixkC75GD3RFYJMhsQJ/siVLckiNwBOBd3/qvpJ7 3Zeg== X-Gm-Message-State: AMCzsaWc7xLLD2NdHQh9kOpEDainX5RhubqBRB0OY/gki9a0gQlRDtoC bdfm4w8dZ4u2PgwIYL/O6I4= X-Google-Smtp-Source: ABhQp+SmFlZh25M2fWnLY0nwI6YKTD316Tb4BJLmahhvofxsshTZjboaSOQyVI279DE06JsHAxypZA== X-Received: by 10.55.52.147 with SMTP id b141mr11553403qka.76.1509332848102; Sun, 29 Oct 2017 20:07:28 -0700 (PDT) Received: from x1.local ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id w6sm9446094qtc.53.2017.10.29.20.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Oct 2017 20:07:27 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Richard Henderson , Peter Maydell , Eduardo Habkost , "Emilio G . Cota" , Paolo Bonzini , Thomas Huth , Yang Zhong Date: Mon, 30 Oct 2017 00:05:50 -0300 Message-Id: <20171030030553.21259-3-f4bug@amsat.org> X-Mailer: git-send-email 2.15.0.rc2 In-Reply-To: <20171030030553.21259-1-f4bug@amsat.org> References: <20171030030553.21259-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH 2/5] target/i386: tcg stubs 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: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" missing since 55c3ceef61: LINK x86_64-softmmu/qemu-system-x86_64 target/i386/cpu.o: In function `x86_cpu_common_class_init': target/i386/cpu.c:4215: undefined reference to `tcg_x86_init' Suggested-by: Eduardo Habkost Signed-off-by: Philippe Mathieu-Daudé --- target/i386/tcg-stub.c | 13 +++++++++++++ target/i386/Makefile.objs | 1 + 2 files changed, 14 insertions(+) create mode 100644 target/i386/tcg-stub.c diff --git a/target/i386/tcg-stub.c b/target/i386/tcg-stub.c new file mode 100644 index 0000000000..e13d993a80 --- /dev/null +++ b/target/i386/tcg-stub.c @@ -0,0 +1,13 @@ +/* + * QEMU TCG x86 specific function stubs + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ +#include "qemu/osdep.h" +#include "cpu.h" + +void tcg_x86_init(void) +{ +} diff --git a/target/i386/Makefile.objs b/target/i386/Makefile.objs index 6a26e9d9f0..2b3db1e5c2 100644 --- a/target/i386/Makefile.objs +++ b/target/i386/Makefile.objs @@ -3,6 +3,7 @@ obj-$(CONFIG_TCG) += translate.o obj-$(CONFIG_TCG) += bpt_helper.o cc_helper.o excp_helper.o fpu_helper.o obj-$(CONFIG_TCG) += int_helper.o mem_helper.o misc_helper.o mpx_helper.o obj-$(CONFIG_TCG) += seg_helper.o smm_helper.o svm_helper.o +obj-$(call lnot,$(CONFIG_TCG)) += tcg-stub.o obj-$(CONFIG_SOFTMMU) += machine.o arch_memory_mapping.o arch_dump.o monitor.o obj-$(CONFIG_KVM) += kvm.o hyperv.o obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o