From patchwork Thu May 15 10:25:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 890170 Delivered-To: patch@linaro.org Received: by 2002:adf:fd8a:0:b0:3a1:f579:ae88 with SMTP id d10csp3060460wrr; Thu, 15 May 2025 03:31:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWX0i8wADmwUZZj/WzjfDwh+fBU0cfmUl+zj2ztpwmM6ax1BjjS4gwuM8zzKSVQGpu04oj8Lg==@linaro.org X-Google-Smtp-Source: AGHT+IFCzikSEuYVWKldaEwyQvpsuY6EmbmIlirVqI8AM1aNGU/OdUxEM8nOh2CGCf92sVvF50Yh X-Received: by 2002:a05:622a:5984:b0:47a:e616:cab2 with SMTP id d75a77b69052e-494a335a736mr35200931cf.15.1747305091073; Thu, 15 May 2025 03:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747305091; cv=none; d=google.com; s=arc-20240605; b=eXdpwb5Uc7vqL+hnROcfD0y0vmxp/7n1wujIv1VGQ32AnL8gT7YlOZ8S3zvlqmdV3o xZyVvRei/bTEXUs4IuRCQ9Ru62iS+fRvsCbWDwpKjgjJnBFxZ6WV2ijWkPVbN344t9Ad tbzSoOZgnNJmTKMuuhn0t5MGLGFzeFcPeyE2cWJoZYlyKc74GXBD6w7mMtT/cz8Zs4d2 GeKKDEIfoRD5KJQbXEuAIKUPaAyqJ7/OPpN+oIOj6R+K9aVb4t9/7dh41ErUyqgvE+uO Ru83uvVy21ClRH8LjIanVslTT1xekAXYAl6EuAsbWkbcbKU3ef+M1XYZ3JI0Yn2Z38h4 EScQ== 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:to:from :dkim-signature; bh=X3sKaOriNp2h2IwJgF6fYokuc0VVHT+FQQSKLvZf+Go=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=V2EOAHBK1MWF/4rHwfK0SshpY9XYqflaAvrCvGwPH72WZH12/fwWodmDDoYmnVtSkf PY/h7pno5aEU/LVEl/3HDNofTbOEo577eKJ++/hWcOeoV3PDAezdkPwdb6bG1q+76PZA 2yQTs7CgDI9zUxi3EGxnhZsogwMz2ChgHohmAKZUMIh/RNesJNaSlrO3VEVrM2TKGL/8 OuxhbDWS/JdCClOA5PKNuoefB7eHeS7+BhxAY0EJBKM8Q3AP/sayOBKQYwBVAu9RRqs7 gby0o5L3R828pjNhAXSUhL1+Ojo4+GLDvXgUczJTxBIB4EBxulU+Med4kuAa/VHJ92Sd /fbw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h94PPpNm; 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-4945259b1b4si156570081cf.514.2025.05.15.03.31.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 May 2025 03:31:31 -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=h94PPpNm; 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 1uFVop-0007fl-M3; Thu, 15 May 2025 06:28:03 -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 1uFVnV-0005Ie-78 for qemu-devel@nongnu.org; Thu, 15 May 2025 06:26:44 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uFVnS-0008Ee-3h for qemu-devel@nongnu.org; Thu, 15 May 2025 06:26:40 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-442ea95f738so5531175e9.3 for ; Thu, 15 May 2025 03:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747304795; x=1747909595; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=X3sKaOriNp2h2IwJgF6fYokuc0VVHT+FQQSKLvZf+Go=; b=h94PPpNmJgdLq6d8m3Irwdvo2W7PmxxhuE1EspynIBM86sylhckxLYAd5NbguyXH7p xnqA6Zsm3FmYYkWkrBb7ybFyCrxbVIXZUxhw9Lal4T9dWk138k5+f9UGwXnjMDS5B4l5 Qhz4gA+h8JPL4qevKebZXSE5Xi9F2ag3aUuuH/kwSqPtzqZe1WExfLyDRToPNbm6TKb0 OOZG96wYWqZtGj5+XOPRdUQKa8lyAQPBWkPCeHzKHAhwiSzC/Ho1oegh0YxffRqCLLkU Mtj+VZuvWx/rZD2FykoRttskKa0f0eOL2HINAs8ej7tbLgNEypGXfmvai4R6S4LJITJa gaVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747304795; x=1747909595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X3sKaOriNp2h2IwJgF6fYokuc0VVHT+FQQSKLvZf+Go=; b=hbksqzauFYy9ExSgc0TCmhoeFwyl4e/6vfY9C4zMGUTYMpfRXme3x6o4BnoHIXISX/ ypYFuzf3SUCLoyonvN2+HTDqlTEpujK67eQQyPQmxcaDrOENMv24HqnBXFKkelx5Q8nN VGkE3GpY5vgmrJKEHbbGMHnRcIL3ur1BGVYNTS3xg8SUV2nTUOsPA4SgA5IqBthjsr4L y6MV/HzUlqCrw1QyIgjlL3aBfkHI3Dyz10gg3aj7JIllw1DZr/Q1bIO2ZVYiwruwqInP hRIJFYXnegTWN7vxOX3ZpbIlg+BRWcZngXfVruq02G5oZKyV7/2BDv2XsdFOAyxt36Wn gAfA== X-Gm-Message-State: AOJu0YxA+1jRZGGlvmH/hMiL1yYV2btPin3mQucs7MIlC9j1L0xBdiHU 0STD36BNlCaEeKT5WIN20DPx9huuKADBsALDNSb45Ee/TYke208K243PqO60BOOakz2Dc0fXPQV NXEs= X-Gm-Gg: ASbGncssrepYLzbSwnxIY0NqxK5wr7Pivy3vkbJTcFjMErgaMfGTnW7zJvEZ6yLKwap iej/qao/79kILJUHg9paww3siefQXniyb4dd9DaLF+BO6JlMMqy4aTkbnPSVaPLhkrdfBCSatAy 8Is/zRuTTPfWVU4FAvL8kBbDIZHJcVxnQ3dJDSLwJEZn761Zzek9iF8crx0allKrrE9RRgoK8Ay fTfi/ZZ/T5MI8OiMD/MpE9Djp9AVytqMNie/gCsSQOaKl5Hl0wby8TRBCqxa7pChWTiznH66ip6 Vayaj/tksgaVoOGtZJ3F/9OS5GBc55ZrtFy7wbJ1Thjlxij8f2KZNqOj1g== X-Received: by 2002:a05:600c:1e84:b0:43d:2313:7b4a with SMTP id 5b1f17b1804b1-442f20b91cemr72082485e9.3.1747304794595; Thu, 15 May 2025 03:26:34 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-442f396c3a4sm65657855e9.26.2025.05.15.03.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 May 2025 03:26:33 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 35/58] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Date: Thu, 15 May 2025 11:25:23 +0100 Message-ID: <20250515102546.2149601-36-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250515102546.2149601-1-peter.maydell@linaro.org> References: <20250515102546.2149601-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32b.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 From: Pierrick Bouvier Associated code is protected by cpu_isar_feature(aa64*) Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Pierrick Bouvier Message-id: 20250512180502.2395029-26-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell --- 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)) {