From nobody Mon Feb 9 20:34:18 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499240638240507.78341282805934; Wed, 5 Jul 2017 00:43:58 -0700 (PDT) Received: from localhost ([::1]:44623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSeyb-0006hF-3p for importer@patchew.org; Wed, 05 Jul 2017 03:43:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSeX7-000512-6I for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSeX6-0007sh-3z for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:33 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:34290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSeX5-0007sA-Ti for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:32 -0400 Received: by mail-wr0-x243.google.com with SMTP id k67so48981001wrc.1 for ; Wed, 05 Jul 2017 00:15:31 -0700 (PDT) Received: from 640k.lan (94-39-191-51.adsl-ull.clienti.tiscali.it. [94.39.191.51]) by smtp.gmail.com with ESMTPSA id y35sm22202793wrc.51.2017.07.05.00.15.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 00:15:30 -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; bh=7Sr95e7HAd6MkPa4TYjC2QbWYmgexT0idY7ORHR/2Fc=; b=bD9drV5LIooRLvH5P8+MpuQrXCMVG4hB0/yVukomcEULh4uU7WdRIY/Qrdm2xmrjBv 9nLF1Ygw5QU6SjUY8kkIW6+1QB1tf+aAjosp+rIrT/tive5AKdBsT4hmy3oBv+0f8Aun Bb9kpDYkAgSh0zLXu9miBWK7FIA3a6iZ4Ee/UpnM283qs2DC+vAn7ZBsW9A3zM//VGTX N8Q83/JACDSWaL9JNay8vkdhc3TBmJsunEFn20M7sFAphA1ncJ6XNn9WR6ZGEofCZRsY M+H/d9gztpj4LxQJMfC2U+RdwPm/kXt+2wk4lX38qKmQNzmHUJEObo847NfYKtizE6me 1pYg== 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; bh=7Sr95e7HAd6MkPa4TYjC2QbWYmgexT0idY7ORHR/2Fc=; b=SzBlL86ntUmPgkVKP1ozdi7jFVfXaJ48xqHyOeUeDh++k/VQAfLwyy69YkM/lH/HwH qHI2uUdWde8uSZm5Z5nlnTqUO4b02fFhtlQTpEQ0y69JmsRSVnbw95TLMueWeStYAPSj pn8g/gXXE7Fe2mt52uxjNNLube26zN38z91Tbz9IIY7xGWFCnYPpVMU0wqFA6fcXfYHl r0+9jGIZ7H0bPx6/gcYMUhdZ4ZAEB0tjLPfdBlzS93gCGpPQObxZlwOQ8UTdju7fk7Be o3F4cpuYzAvO9PDS4DfyDDNWoWIUOOL+vyCdxyiopxRsJKo/UUe2qsE0WhesDkZa6y42 0oww== X-Gm-Message-State: AKS2vOwy0c5okqfTNecJjYOSVVU4kA41PIcf82zEC9dHf+SmNsr9KKjv TfDg6pJOCTCOlOsWuS0= X-Received: by 10.223.153.165 with SMTP id y34mr36886145wrb.41.1499238930779; Wed, 05 Jul 2017 00:15:30 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 5 Jul 2017 09:14:38 +0200 Message-Id: <1499238885-26161-36-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1499238885-26161-1-git-send-email-pbonzini@redhat.com> References: <1499238885-26161-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PULL 35/42] tcg: add CONFIG_TCG guards in headers 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: Yang Zhong Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yang Zhong Add CONFIG_TCG around TLB-related functions and structure declarations. Some of these functions are defined in ./accel/tcg/cputlb.c, which will not be linked in if TCG is disabled, and have no stubs; therefore, their callers will also be compiled out for --disable-tcg. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini --- include/exec/cpu-defs.h | 4 +++- include/exec/exec-all.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h index 5f4e303..bc8e7f8 100644 --- a/include/exec/cpu-defs.h +++ b/include/exec/cpu-defs.h @@ -25,7 +25,9 @@ =20 #include "qemu/host-utils.h" #include "qemu/queue.h" +#ifdef CONFIG_TCG #include "tcg-target.h" +#endif #ifndef CONFIG_USER_ONLY #include "exec/hwaddr.h" #endif @@ -54,7 +56,7 @@ typedef uint64_t target_ulong; #error TARGET_LONG_SIZE undefined #endif =20 -#if !defined(CONFIG_USER_ONLY) +#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_TCG) /* use a fully associative victim tlb of 8 entries */ #define CPU_VTLB_SIZE 8 =20 diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 0b56432..8096d64 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -82,6 +82,9 @@ void cpu_reloading_memory_map(void); * Note that with KVM only one address space is supported. */ void cpu_address_space_init(CPUState *cpu, AddressSpace *as, int asidx); +#endif + +#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_TCG) /* cputlb.c */ /** * tlb_flush_page: --=20 1.8.3.1