From patchwork Mon May 12 18:04:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 889385 Delivered-To: patch@linaro.org Received: by 2002:adf:fd8a:0:b0:3a1:f579:ae88 with SMTP id d10csp1743186wrr; Mon, 12 May 2025 11:15:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWQ1vfrmnXzPa+fq5xW+arJI339BXjl8gnC8VFjgMbTPx2r5+Po0eB2W+I9nYhmbO5VQBTxUA==@linaro.org X-Google-Smtp-Source: AGHT+IGE1LXVi4t5zJh3s+8ZsxMzh/PrCu7kxix2igmDgS9GgSyEA3Pt5IOgTTyik9bNvWcB6ekJ X-Received: by 2002:a05:622a:a18:b0:471:fef5:ee84 with SMTP id d75a77b69052e-4948734a204mr6750791cf.7.1747073723585; Mon, 12 May 2025 11:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747073723; cv=none; d=google.com; s=arc-20240605; b=LlpcBlO9Ez/CLvPoBEfACIOikpRUlqalkU1CDgle/TcnHoMsEZ1TcNPWpdcx9AtmU5 dTyUTfjtSDPeJsQB4wvzTBqsrjH9e1gZaEcgM/UlF0XVEf8UwLlLBAIuvaufoML78S/r plA2JygiFofP9GZazAf0T1zswDYgbNg1hj/KVoqDtVAmsOWZKX/tlY9fbnXfkV9kCIxL AUzOzK1LSYCkVHsyh4BZY57mgczeCdr27l8t3X+iDEwDf0DmL/+lhysJN3g65Veuslmf rFqN/l8CJBVKUc/dTnKlqM7kWXE+dZOaecRV/Q2i7xmwKHZ+3+H9RjKGlPSevepBraps 3kng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eeLa55SzX7Awe9dK4zRdJwFSzsCeJiaBfVkd4m0OHRI=; fh=PlN3fUhDtems6Bb7y59zYD8EwBcqcc7pnzqldojq+us=; b=hNfbSMWZ6bIE1nwlMOWrKqaR4qEdo0HSHmOVExh5axn5fX+rCMyfR7WsJVN6HkcBqc N5YKqN+X77LVCZIV5PxVI2dAD1l5/Q4i1G3wC7HCYshRT/NFUoa7rXqWgZHCO49blTeg zdIybJjSYS8WXLNrQ0BfIJQNhu1jfQ9kznpTaJM4mNoHXuGYraopnxQEk8p7zl0v+DAg OaPVDfZHS5N1mW0YRBfEnFLrwvMvFvpPOH4+R///NXSq/If3ifGBlr5u3ccHAEqVKKTE BayiZ1SSI0IvLIpAe3OHoZxY4SvW0QgLIuw4Jn6B7Xin+SCGKbM8k9DD+FwpJN79cv6h OaVQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ynTurs3z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4945245a0bcsi89338121cf.3.2025.05.12.11.15.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 May 2025 11:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ynTurs3z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uEXXE-0002w4-L5; Mon, 12 May 2025 14:05:52 -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 1uEXWm-0002QI-Nf for qemu-devel@nongnu.org; Mon, 12 May 2025 14:05:26 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uEXWj-0008Sq-3o for qemu-devel@nongnu.org; Mon, 12 May 2025 14:05:24 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-b1fcb97d209so5162575a12.1 for ; Mon, 12 May 2025 11:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747073119; x=1747677919; 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=eeLa55SzX7Awe9dK4zRdJwFSzsCeJiaBfVkd4m0OHRI=; b=ynTurs3z/e2dIbYbS2KVOAR8GuwJHYNHWp0znEdi4+ktU7uQzkQ6SH4FtkUGWzMr10 Xl1uww3yMrItvl9+wXSD9vbG44CipWTkzgjBwAhF3sDt/RmQnjVIyFSqrT6ZBfWi3BG8 LHrBVsnVFP8uVES8TwHdpA7uTCj4erYEhiOMZ/U3vOC0rsakzKhnu95JWPuj9u8GtBJ2 UmrHxztIvma3xMzwX34lxihUJkXdd/NXSHvwphKqCrqYvhuiirIIRmM9EeDjmTX/KVuP kwTScP+POO0Zz5Z2jQdg0J4TxEuGhdKi3E3KnILWG5f+uzz2xmPcuOdgmhgHXvUJ5hw7 4Riw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747073119; x=1747677919; 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=eeLa55SzX7Awe9dK4zRdJwFSzsCeJiaBfVkd4m0OHRI=; b=Bq+p1EEVSCevAUWxICLkmoQWMJESt/HV1c2UXO1mrTYmqdCt2Lmn/mh3McYm14YWOc Xsm/nVfUwQ6lH5pun4odM6pU7br5Kk4b/4Q/7iyL9Yspmp9xUNVCJDH38u0HWuw5vMqU MTV6TTobQSAtQsIjRqBhtk1zsQJjwHSe6zbD4q9HmVVSS1h3AyMgesOg1Wm0YZxi+CkJ DmLM94ruMkGhB43gG935UwSYazvqTH/BxluUWYZfgGuFtI24iVlBqK+8FlrX+AvmRbD6 gaOza1sQ22KteazkhFSyvqpm/R09LtzRfwqlsFCgVbuWEygaujYYbmn4JWeK3qiHQRsT KU4g== X-Gm-Message-State: AOJu0YxNXiHlkXQ+hIAruGlKHTj44/2JkJ2sTGcJuFb3Sv9BqQkbxpRZ U9Ul+JP9MaFccCEGJTFuxx7RWs/ldM59CeMw3raCJctJLRBZdn5WVUk+9m4iS+8nncQtSagE3qf F X-Gm-Gg: ASbGncuczfuPA4DJyKB1E0lN5EidhhRTDPCQ7dxyK4b3wC2aRxgwdacGL76zKE9M3eO iu7dUTNE2jvXbwSeUgKkIiAR3/E81555zrZQv9nbEv2eg7KrvBgjDg5uxnbv6Ms/yAXmCpfY9At OOqChuCId5SyuCI070k4BXB6TKOgobJl+CAWnzOKt84lEJoueZbaSQtbW/t8WVk3W9tu0jpDoBV +5CU4HtmwYKPAbks3LPHr3VQhIQsN/8llCX89pQuZKk6FMp+CYKIT+LA4cJ0yMAJyKssgqIKpRv D2SL/KrT8nncGq5WzMfrLI8I4+C3JdcFbopOrKKhesBKoxujjQI= X-Received: by 2002:a17:902:d4d0:b0:221:1356:10c5 with SMTP id d9443c01a7336-2317caf3186mr6221335ad.9.1747073119092; Mon, 12 May 2025 11:05:19 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22fc82a2e4fsm65792005ad.232.2025.05.12.11.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 11:05:18 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , kvm@vger.kernel.org, alex.bennee@linaro.org, anjo@rev.ng, qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , Richard Henderson , Pierrick Bouvier Subject: [PATCH v8 08/48] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Date: Mon, 12 May 2025 11:04:22 -0700 Message-ID: <20250512180502.2395029-9-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250512180502.2395029-1-pierrick.bouvier@linaro.org> References: <20250512180502.2395029-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x530.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Call is guarded by is_a64(env), so it's safe to expose without needing to assert anything. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- target/arm/cpu.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index b0eb02c88ba..b97746faa87 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1182,8 +1182,6 @@ static void arm_disas_set_info(CPUState *cpu, disassemble_info *info) #endif } -#ifdef TARGET_AARCH64 - static void aarch64_cpu_dump_state(CPUState *cs, FILE *f, int flags) { ARMCPU *cpu = ARM_CPU(cs); @@ -1341,15 +1339,6 @@ static void aarch64_cpu_dump_state(CPUState *cs, FILE *f, int flags) } } -#else - -static inline void aarch64_cpu_dump_state(CPUState *cs, FILE *f, int flags) -{ - g_assert_not_reached(); -} - -#endif - static void arm_cpu_dump_state(CPUState *cs, FILE *f, int flags) { ARMCPU *cpu = ARM_CPU(cs);