From patchwork Fri Apr 4 22:35:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 878210 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp4006106wrs; Fri, 4 Apr 2025 15:37:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXHtotZDf05sbFgbC1F+6WjcHMSEQ+2UPbp69Sa4KonAgZOcqQAHaynDoKut52UrPgKQs38Qg==@linaro.org X-Google-Smtp-Source: AGHT+IEi3pc30GEZ/iQWBMNWGC44xCnA5vdbYF+LpuV5XqTJn1XHMub+piWf5HwLU40dg3BLhble X-Received: by 2002:ac8:7fd3:0:b0:477:cb9:13b0 with SMTP id d75a77b69052e-47930f53dc2mr17254931cf.7.1743806278968; Fri, 04 Apr 2025 15:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743806278; cv=none; d=google.com; s=arc-20240605; b=bKkHmvp9OliQOFUY5x6eleAtVdDQ9rQl57rQ/WJ8yJyQ1bfciSih6JYwy56BYq0mwQ TLOszwjZkqSTA5+OWglkdsEgTWTxsYcdnQSv9axMDT+29n0/VS9S6DZbSjmhSfk8ZPyl hDcnHF0UQgpggyDncmcbYEUfaE6a2xMHYP6dwaKaHmC6HFC1Cc2ikXO61TgARynv5x4L LoF40zMxM3yeOOB4nv1NlgpDeKWktniHxoYheK2AiqkrJ8/5MWVB9evalNGM2vEmvLhT DrKOMEgkN7SLSTsV8HUb+VNGy4Ig/dqnYbnBj7m479MCHu5dKofMgQcNkVbzMx1XbXL3 jrYg== 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=vxlCfJu/ghlRwJtFNdG3a/Et1O+b4mI9O6ETIO8F/ks=; fh=089D9cN8gKCxRQaMV+d8/EwypuoUoS4FPKA8rjpOLh8=; b=T3SE/QUv1abK65osijsZCtJF8ezRZ2ODX6sqU4/+rHCA/ldCQmQKojrIEIolubLxjB RcN69NtsdrjVz3Ep46BAKac/FbUe1v/mSZ+foYLqRpGcuWNVROLlFlNmQVhC+SuV0UuZ 7z1kcyDQEFHHaqtoqGRu0B2pF0fdCHvMqCO7Lg2cY1kfpz7IXR/2NeX+TAux2SSy9nfB xPxKxXpcZzy4UMwlgdrUyFiXNcASL7ZiXD8JrcBRHEOmESdrIQi3LK05bvV8u7oVIuav WDDT9DisN8wRQRZdW/q0sVnPkRed/E8QH+8YG7s+XXvTYx/hADGbwc8dIDgeCFszXfLt BasA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U0Jj16oS; 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-4791b199cf3si39508681cf.447.2025.04.04.15.37.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Apr 2025 15:37:58 -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=U0Jj16oS; 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 1u0pdV-0000gK-FG; Fri, 04 Apr 2025 18:35:42 -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 1u0pdR-0000fQ-Vt for qemu-devel@nongnu.org; Fri, 04 Apr 2025 18:35:38 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0pdO-0007xO-5Q for qemu-devel@nongnu.org; Fri, 04 Apr 2025 18:35:36 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-43cf0d787eeso26816905e9.3 for ; Fri, 04 Apr 2025 15:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743806129; x=1744410929; 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=vxlCfJu/ghlRwJtFNdG3a/Et1O+b4mI9O6ETIO8F/ks=; b=U0Jj16oSh7JtVnmhMD+xC/NEkHh1Stwg3SI4b8YZfJN1lCh7OL2XWCAAv37iN0DrTT lD+c0CFmNdF+PWr/bp+3WK5ooOtds6yZRqfgDoMjhx3Fx/4oFlZEQ2BW8UEMsdPxPZjn WOwUmUdBwogHdvAXGWAIanlLJIbRZhNSpONCr0JVF0jLRYikv8hPvpV1FPRJYhJ0SqCD 4siDVtsfsAlLpeJr34X3m3b9R3V8tF4Wc90kmnpO03SW19tVXzVjEWgs9Hdv8ZrWiJAS dTVKY7wDd2tWP8ATovOc6dAJQpTxt0kGwsGAWv8rWWn90L7VYAeuArLo7BbVo2VF1Ioh ziOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743806129; x=1744410929; 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=vxlCfJu/ghlRwJtFNdG3a/Et1O+b4mI9O6ETIO8F/ks=; b=taN6sXINGCSG/AnIh9lqu9mA+ULZF2yPrTvjvRISm1RiOmcjXoBpgHD9T9n7B/N8ac GUJh4AALdK0YA2kAbtg54ezX+NxhICV/j1cy3ngIfZr7+4rqDUpkl+5IEsgwMB7978bx ce+Yc5SSH1k5YnVBdMPNzJsW6DffmgLh6reKoqU1pJHvIQIm9CgKHDS0c48utK3FFDOX FVWujgoGbL7Q4VXRviS0G6mJwxTI3d4eEy9Ug0180jdlT61/NLEhW21QUxbT9J/5GMvP Am+mf39iE7qPTVRvejESexkR9b7KfBkR12qd7CvibA0fa3wSTPXIIPD6ftbcvNPOfn9O t4Ig== X-Gm-Message-State: AOJu0YxsSMg1I5TNM9mC8qdnGvk2QMgdZTh5Xmu09yrtw+KGYIEdna5B LX6shSHMGehNAuHQ8pmS95zt6GuimJhJE8EewlkCo/DPNTXoFAw2rIktFiJedtyFm++2ZNJ8ASh 4 X-Gm-Gg: ASbGncu4rELR4S3iNJ1XVcCCWH6UClukj1TQyY+pklBUFs6jykesAjd2OpV9n1PgLgC GKmNc5P1WP4hmoALB9Jarfo4lEPtKwShrDWMTJNoDH56e/UNCkuL15q7SrTyiBZic7M4Q5BM+gZ VlJoXgROVw32v+IfJaia/UdQ/y4tcCtwU66XIzKpxADrfuqrw+jWU3HZ/w1yQh4OAr+aRpI8CnJ tu57/cg8XcIm85hD9OpRGjxNl2Rlzt34g1INjVaDJntiNzgWkn3vnuEAOCzJC7P8lXxKwqXfThw PX30GA3wA1CIpIBenGhnYlDNF7whbJzoYJfrdlSMQzPkE1+eLn35HThrwqHVAp3L4c5muZwmjjp 0nH/VtxXNW6K1O6jN9q5y4Pgf X-Received: by 2002:a05:600c:4ec6:b0:43d:fa59:a685 with SMTP id 5b1f17b1804b1-43ed0db4025mr38379115e9.33.1743806129342; Fri, 04 Apr 2025 15:35:29 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c301b76f2sm5404476f8f.53.2025.04.04.15.35.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Apr 2025 15:35:28 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Gustavo Romero , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-10.1 1/9] target/arm: Remove uses of TARGET_AARCH64 in arch_dump.c Date: Sat, 5 Apr 2025 00:35:13 +0200 Message-ID: <20250404223521.38781-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250404223521.38781-1-philmd@linaro.org> References: <20250404223521.38781-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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 It is safe to remove TARGET_AARCH64 #ifdef'ry for code guarded by runtime check on aa64_sve ISA feature, which is only available for Aarch64 CPUs. Signed-off-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)) {