From nobody Mon Feb 9 22:39:05 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 1499239784102879.7486730770892; Wed, 5 Jul 2017 00:29:44 -0700 (PDT) Received: from localhost ([::1]:44549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSeko-0001fn-Rb for importer@patchew.org; Wed, 05 Jul 2017 03:29:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSeWi-0004YV-JX for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSeWc-0007Xq-Tl for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:08 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:33131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSeWc-0007XD-Nu for qemu-devel@nongnu.org; Wed, 05 Jul 2017 03:15:02 -0400 Received: by mail-wm0-x242.google.com with SMTP id j85so30447249wmj.0 for ; Wed, 05 Jul 2017 00:15:02 -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.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 00:15:00 -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=APn7rLN+TQ+c3aX7Qot5Ks/dXhqvt7eaRQ8R4koD2kM=; b=Uni7KkeiCDgcLoKUvdUGnwrwhh9I39ooELGjVk5fIhJ745T1iJDxCLHhCU3kQSvTwH qymiJNoreelRfFimhyixJoBgmFL5ITHI3N7wRJ3nynxenAY8Cn8RMKHUnj/YKZ/qBUBb Ao+QuEjzXEqjTbU5IoFi+IoxVIGlInq4q8ls13sxiEFeRBHzQz6XYXtBZTwCso3g69nI KjW3L0cXWOugm6nrDdl5NiOhVVHQdRLr/XdEuipsQiGeT4vzEqDYrupKQT5Y77HG43yj cgfqaD/inVBIihj1cgD8F3azIZ+MT0YpYWuvHiO9xpAJpC2xkDHaz3dX28BmzerJZXiK PUow== 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=APn7rLN+TQ+c3aX7Qot5Ks/dXhqvt7eaRQ8R4koD2kM=; b=k9M3IRtdSSaD3qU6vKtCbzMGLX3JRo2yEVGO2Ndb5lQ03OZ3sWupOEmUU2OGZfXP8+ SdZk+qxjegQhawZ0vT1kjLarqyWCIjZQFzM2KwqcNqYwakuMry1I+420UXXqUX8YF4I1 pRGyFMskQpeZQsoKY2ZdSRlTleBEwFnWTnkj2fZA3KAKBwv4nFfW3R0VM97VvkFupuzW Hg41mgla7/H+yCs0hjkIuU2TQ4vF9bH4BEGgLng5N/C9lQjvQNCiryBZKYFEhvyYt6rk Nk5RTsb0bdjwYt7kfyaovFpQVe541h9XVagL01ysJqGmMif4ntkrEmayY0kcA+LF6nUQ BPRQ== X-Gm-Message-State: AIVw110ecQFF8UicimTXmoa9/xJW01GOKlgbMRMWEnLhWjeOFxXswiww 61XUJM/xwjsJNc6F80s= X-Received: by 10.28.66.67 with SMTP id p64mr14551409wma.93.1499238901622; Wed, 05 Jul 2017 00:15:01 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 5 Jul 2017 09:14:13 +0200 Message-Id: <1499238885-26161-11-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:c09::242 Subject: [Qemu-devel] [PULL 10/42] include/exec/poison: Mark CONFIG_SOFTMMU as poisoned 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: Thomas Huth 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: Thomas Huth CONFIG_SOFTMMU should never be used in common code, so mark it as poisoned, too. Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth Message-Id: <1498454578-18709-6-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- include/exec/poison.h | 1 + include/qom/cpu.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/include/exec/poison.h b/include/exec/poison.h index 32707cd..41cd2eb 100644 --- a/include/exec/poison.h +++ b/include/exec/poison.h @@ -87,6 +87,7 @@ #pragma GCC poison CONFIG_LINUX_USER #pragma GCC poison CONFIG_VHOST_NET #pragma GCC poison CONFIG_KVM +#pragma GCC poison CONFIG_SOFTMMU =20 #endif #endif diff --git a/include/qom/cpu.h b/include/qom/cpu.h index b9440b6..7bfd50c 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -817,6 +817,8 @@ void cpu_interrupt(CPUState *cpu, int mask); =20 #endif /* USER_ONLY */ =20 +#ifdef NEED_CPU_H + #ifdef CONFIG_SOFTMMU static inline void cpu_unassigned_access(CPUState *cpu, hwaddr addr, bool is_write, bool is_exec, @@ -839,6 +841,8 @@ static inline void cpu_unaligned_access(CPUState *cpu, = vaddr addr, } #endif =20 +#endif /* NEED_CPU_H */ + /** * cpu_set_pc: * @cpu: The CPU to set the program counter for. @@ -1015,6 +1019,8 @@ void cpu_exec_initfn(CPUState *cpu); void cpu_exec_realizefn(CPUState *cpu, Error **errp); void cpu_exec_unrealizefn(CPUState *cpu); =20 +#ifdef NEED_CPU_H + #ifdef CONFIG_SOFTMMU extern const struct VMStateDescription vmstate_cpu_common; #else @@ -1029,6 +1035,8 @@ extern const struct VMStateDescription vmstate_cpu_co= mmon; .offset =3D 0, = \ } =20 +#endif /* NEED_CPU_H */ + #define UNASSIGNED_CPU_INDEX -1 =20 #endif --=20 1.8.3.1