From nobody Thu Apr 3 11:29:40 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1742510094; cv=none; d=zohomail.com; s=zohoarc; b=LV23HwR2/lQ63DB1J1+jDUFu19rVlrsou3sgPNeX4kYpwy8GfeBcpwiRFJJDEWn7uGmmDqki3r1sfdmKNt7i471Mrmhx/OFnrLc6+ibmNkn0+p+T1uTQTvPvGxoKCAgMjqnnwVFw0rLlr6Ta2pue2TzSqiyWtO+erHcW+7RiVAw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742510094; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6HMVcutgyuXMGRqprNJQ4jtFGs2OPO1Jy4KbSNXvsaY=; b=Dmjo4YutTS4O94VTpMyU/CTTINdp30TBNWldcHwbvmO1Z9BJYoXo5P+v77fPpcy7XMMMZ+dAgtb7Ts/CvjYibEsIu2ZXAZDc/kR39awgmQK3N4fpXIny6iSgQPAwSlWGBPGiaeDBD0J3wx/OlNzMaar3bHXzmE7owr0F1wPZpWk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 174251009414460.94419912579394; Thu, 20 Mar 2025 15:34:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvOQd-0003Mh-Jr; Thu, 20 Mar 2025 18:31:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tvOPO-0002Ri-1K for qemu-devel@nongnu.org; Thu, 20 Mar 2025 18:30:41 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tvOP9-00077T-E5 for qemu-devel@nongnu.org; Thu, 20 Mar 2025 18:30:36 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-224341bbc1dso26815805ad.3 for ; Thu, 20 Mar 2025 15:30:19 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22780f4581csm3370145ad.59.2025.03.20.15.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 15:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742509818; x=1743114618; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6HMVcutgyuXMGRqprNJQ4jtFGs2OPO1Jy4KbSNXvsaY=; b=BUCTpJnjCxQ7ZSOIDp+0dAim6nSX7Tg88zJCdgov5KDeqOFd6u2eKzcwkNFBkbFzNO 7TasKNVHJ068hQiESh3xEsnMQb2WBAudAd4ySLNL64tTmY82nbvuZGh/4I0UNrx2Jxf9 F/Xf2wthc/q87aSuxiYWs/oy3HjzOn9SHTqog4sm6br+Y+Mik06gF9296veL5xC1zd8s nVFROMU8Q+xZVs5rLY714HPpCFYCp2JeW05U/rbCG+iAHG4S5NOgAgh9g+bX1O7EPBom LcZ9H8YQTfh0RppcwjQSDmQtPzAxNTDhYt+4S3YTYdb8X38m4KHWZg6kX0ya6WpELq7K utVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742509818; x=1743114618; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6HMVcutgyuXMGRqprNJQ4jtFGs2OPO1Jy4KbSNXvsaY=; b=pIvD7odaKzJlOwiViQTO/VcnNPaAZ/rLgNRpjR1O4AGDY7R0dD3bWtKmIE/Spdk8qq YSCi9J+6fzXnYcDH5V+ZQeSa+e4GhTfHh7XGPJAVLxSGLnn9V0TiU9R/d8FzqWy7hUTy QCnerlzu1xFRoQk9GsJktxpnUOXw12Jag4wdacH4EXUopXFhcszr5858+MfAn78k6+ef mcXXFV2SNwo2QeG+vjfcOj70jGj2u8KCvrpfG2diqfa/l3wh0vI5tVRd7i51Py4px3Cj uNlhJlwmFTOjTBxu7EGJTeyVocmH+u63UGB1feWN+b8CV24hPanLbDVcUNbauy3xAb4g wLQw== X-Gm-Message-State: AOJu0YwijtGIU1SEn/9Kev6GWy4M/8YVvrudRmUXOZyMM0mf33LLMgA+ 1jV4k3vbRZXGto7mrzyDtNiuYdwCK/7gZk1repmZztXYdYguVg5CfwGGanhHZ1MlFb+j1/cSrEj W X-Gm-Gg: ASbGncu8FFMgn/r1EZ6f0CdAWS0e2go6GBplr49i7Hb9fBwx0jIg2Z7VJZYd3ZR5G9R V8McIgegs000G6V5/awqx0Rl/NSaazlLQXx2gx6C34zjAFDiA6AvMvSJDvfcYOq6qVI3uF5LzVN 9QBa94XnQ0qtJo11wqUn6Rj9fZGOODq2yuzsen+JkZC8KW+kyVYUbQXMMwYamEd8k1n33H+MFeE igc5Fd/Qx3pvAG9Q4EhpizUqpuY+UVzjgHsPgeBl145y0LgGTu9a6fUDCZIwVDRTH9+SfcSXhPu z6uET0GEA2KhKrK6Y4k/AWIW07ZTsaKd1JDq0eQ0aqAx X-Google-Smtp-Source: AGHT+IG6+hbG0wVW/t6Amtifybw7dZc7IOQNafgewk+tDppyXQ5h9nASpMX/jqywf9Wi/q7Dg4LTxQ== X-Received: by 2002:a17:902:fc4b:b0:226:38ff:1d6a with SMTP id d9443c01a7336-22780c68a1amr17451725ad.7.1742509817869; Thu, 20 Mar 2025 15:30:17 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier Subject: [PATCH v2 04/30] include/exec/cpu-all: move compile time check for CPUArchState to cpu-target.c Date: Thu, 20 Mar 2025 15:29:36 -0700 Message-Id: <20250320223002.2915728-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250320223002.2915728-1-pierrick.bouvier@linaro.org> References: <20250320223002.2915728-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1742510095760019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- include/exec/cpu-all.h | 4 ---- cpu-target.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 74017a5ce7c..b1067259e6b 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -34,8 +34,4 @@ =20 #include "cpu.h" =20 -/* Validate correct placement of CPUArchState. */ -QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) !=3D 0); -QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) !=3D sizeof(CPUState)); - #endif /* CPU_ALL_H */ diff --git a/cpu-target.c b/cpu-target.c index 519b0f89005..587f24b34e5 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -29,6 +29,10 @@ #include "accel/accel-cpu-target.h" #include "trace/trace-root.h" =20 +/* Validate correct placement of CPUArchState. */ +QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) !=3D 0); +QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) !=3D sizeof(CPUState)); + char *cpu_model_from_type(const char *typename) { const char *suffix =3D "-" CPU_RESOLVING_TYPE; --=20 2.39.5