From patchwork Thu May 1 06:23:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 886312 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp174630wrq; Wed, 30 Apr 2025 23:27:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV26ZTPBFf4XhM7yJQeG0Wdw5+YEMBmnwi07T5+SSIqb+VR5pmXO5snQkmsU2EVYeJFrudWyQ==@linaro.org X-Google-Smtp-Source: AGHT+IHcAj2VSG/O45qzhASNgRTOyQlu/UDjc2TExsm3x/VwlZFbqdOR8lMJdC+ZfXONQcDYsU97 X-Received: by 2002:a05:622a:400e:b0:476:8917:5efe with SMTP id d75a77b69052e-48ae90acd4amr37552281cf.42.1746080860383; Wed, 30 Apr 2025 23:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746080860; cv=none; d=google.com; s=arc-20240605; b=WYs63gUKoZOGUB6Wd09clOwm2uft5cHC4WCA2QaOWilcXqMpsRbM5kG++dw6fqkosN hn0F5SV+2k4mc0EVBI3QRW4K8q1rQXyCSsRXizAMnE6GLmo3eMve3Z9DQjA6m04PK2bz KbJjL75Ui/IdU7cgunRLVGIF6/eW465dDgiSYgfaHvN+/gnD/YK2iNojR37d6t7ljW/D JYdzPb0NyeyGXPs766OemUMASeQtii0ycqcRTtq3wGqfFtxakMnMorBQbrrv4SQn9Yyj IIAhNiLlRiEgabpxW8SHrD3BVt6E4XYio+bb773hoCLD0TV0Nap8MCHde58KPF2NZ4EP r7/Q== 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=O4aT1FPx7v6ild1hKo4Zu9XovGo//pi9dSehqEFhLB4=; fh=Fszn0PKjr1lTJ9agfldZI0BguDyTJI4MYSL4G/fcmsE=; b=JheyvV0UOMBtzUL1fb3hjDEGQr4/JUGfVIRJyG9GLlNtHLXl8C8wBtt+R8Zz444Xii yXv+MN0+7dXz7aEL73S5Ex5HQ33LOXwBD/YUu/47tW5PoEfnEvjs3nJoZJJcG3IkChMh 6f5l36dauloW/kuX9qQzU2dPssFScuWCRyo97oSW3QuuFEjVgd31qkVdCZBrZajV/kPv 8DHMNK2uJCg/GiimexeHuXvXbw553z5U3Fzx3GLJ4ytaeqtkR5CVpW2t7FG5hYUHU2/k qwJNpDJ76gmF4VUaom16tBhoiHDc5ec5VAqiOyVX5C03ltgPwVXKgqUDEhwb7O2SjU6U fh4Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KGHYcyJz; 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-48b0906e630si10947501cf.595.2025.04.30.23.27.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Apr 2025 23:27:40 -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=KGHYcyJz; 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 1uANLk-0005fp-NI; Thu, 01 May 2025 02:24:48 -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 1uANLK-0005FN-0N for qemu-devel@nongnu.org; Thu, 01 May 2025 02:24:22 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uANLE-0007Oo-P1 for qemu-devel@nongnu.org; Thu, 01 May 2025 02:24:21 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-7376dd56f8fso874835b3a.2 for ; Wed, 30 Apr 2025 23:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746080654; x=1746685454; 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=O4aT1FPx7v6ild1hKo4Zu9XovGo//pi9dSehqEFhLB4=; b=KGHYcyJzZyhOZmuVOegmgnOMjeoFc4Qv9fg5qTUUX+Ajb0fylT7UXh5P7N9ou0TPBj 6Saa+ZN0WuGdeOVKkuWjS5naZSKvyELwFtKV/H56u94D3Z5rV/GV/AMdL67U3fqG2IWr wL0KBB4v909YlU6l1PUpV0fIqVtduUwzo9GVGFRKaDLtKwW23t0adqKkHk/QbP4DGTn8 6QIyg43+GFQ3qEHn0YuBlr4WEwEo65XkxIcsPsFx+gDIG782SehZldZmI+TR6Rm3/54R 5uLmDtt/JuWUpa6eoQ4QODZ7fXFjsaTmoCB+AQB2pTM7zXzJYepNQADNv1RmvOk5trh5 HYeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746080654; x=1746685454; 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=O4aT1FPx7v6ild1hKo4Zu9XovGo//pi9dSehqEFhLB4=; b=qm3z3fQO0KlWb7xUsyZkT6GfG9JsnGXlsWZfgqu4bFw7DFOWKaNxpjfkyJH5OoA5Yu S6YqWmIOQ3jwYqzrzcJGD8MmoS1RS8F7n0GQZELD6VcuQRHLvYVV21DE/LuMC3sui6H9 H7KIAl8mWuXGkGnCyn2vh10xYlM9NrBnwhx+5ZQXYATPX9vrb0u0Pi9NclMuoQH+MoeC eo9AvOJPQ+TyDTT9kU0Zh213CzelAZdC7ptWrCG+C3pUNwSot0yvpK24qHV/S2QZ3jtP DhAQvWRF3xyDiK4giB7NEjSnIb1Qvpc5jrVGifN+uEkyr2VlcuLJzJbJsZnOcJDOOK9D 1YYA== X-Gm-Message-State: AOJu0YyuIIHyhnLSlc3lmJuSfwYTzkXXEl9qxDI91K3WHK7bhQq7A24j wJNbMH039HyMwOzTC3EKg+hnE8uXrcarG259BREa8kX9T/yCONf2B5cKXGQGfFHEAWLD/de4Ct0 Y X-Gm-Gg: ASbGnctoLpgSTl1tbO25RYvbLqtcH1DFkIZIxhZ/rJQ/Yi2uZ6zxhJwaE46GtTGLs2P OEJrFq6BZmpsn2sQtGP3fNm8MQo7yq1ADItJbA2vdVX0w5NESKWU1TIgsXWmg1o+3WQs2Zhj7hu 07EAnCwXBB9FJkfyCmFF/NhicDCy4AHp3L5TOWaTRlZBDloSmWqURyb98Sk9fR5A64bzWWxuyWM 9+zvaFILBupX4Y7wqLxkDwk+PXtDG62OpHbswvfVBMJQlOjBDBUNchNhRlh9isZ896KNw2eQk8R YbwvL/6161f1RSRgd9j5wG4MFaLhlKO/O1lIRBbK X-Received: by 2002:a05:6a00:170a:b0:730:99cb:7c2f with SMTP id d2e1a72fcca58-7404777ea2emr2728024b3a.6.1746080653861; Wed, 30 Apr 2025 23:24:13 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7404f9fed21sm108134b3a.93.2025.04.30.23.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Apr 2025 23:24:13 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, richard.henderson@linaro.org, alex.bennee@linaro.org, Paolo Bonzini , anjo@rev.ng, =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , kvm@vger.kernel.org, Pierrick Bouvier Subject: [PATCH v3 25/33] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Date: Wed, 30 Apr 2025 23:23:36 -0700 Message-ID: <20250501062344.2526061-26-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250501062344.2526061-1-pierrick.bouvier@linaro.org> References: <20250501062344.2526061-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42a.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=ham 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 Associated code is protected by cpu_isar_feature(aa64*) Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/arm/arch_dump.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index c40df4e7fd7..1dd79849c13 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -143,7 +143,6 @@ static int aarch64_write_elf64_prfpreg(WriteCoreDumpFunction f, return 0; } -#ifdef TARGET_AARCH64 static off_t sve_zreg_offset(uint32_t vq, int n) { off_t off = sizeof(struct aarch64_user_sve_header); @@ -231,7 +230,6 @@ static int aarch64_write_elf64_sve(WriteCoreDumpFunction f, return 0; } -#endif int arm_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs, int cpuid, DumpState *s) @@ -273,11 +271,9 @@ int arm_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs, return ret; } -#ifdef TARGET_AARCH64 if (cpu_isar_feature(aa64_sve, cpu)) { ret = aarch64_write_elf64_sve(f, env, cpuid, s); } -#endif return ret; } @@ -451,11 +447,9 @@ ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) if (class == ELFCLASS64) { note_size = AARCH64_PRSTATUS_NOTE_SIZE; note_size += AARCH64_PRFPREG_NOTE_SIZE; -#ifdef TARGET_AARCH64 if (cpu_isar_feature(aa64_sve, cpu)) { note_size += AARCH64_SVE_NOTE_SIZE(&cpu->env); } -#endif } else { note_size = ARM_PRSTATUS_NOTE_SIZE; if (cpu_isar_feature(aa32_vfp_simd, cpu)) {