From patchwork Mon May 5 01:51:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887404 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp1824292wrq; Sun, 4 May 2025 18:54:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWL4CGPrhHo6EIUGLxcCTm7xf8iW3Jb3FyBPAiA8/1rqNAuPf+YQKNYRZqXa+3dWmHvGhPXeA==@linaro.org X-Google-Smtp-Source: AGHT+IG0NYqABcG0DBZAjCm6kGKMi+IRfGTlTCV/kiBYn/qlvJ3aG0XkRCTc216z5KX0zlBpL5Mi X-Received: by 2002:a05:622a:6086:b0:48c:512d:bd21 with SMTP id d75a77b69052e-48dfd2147b4mr82478601cf.0.1746410046011; Sun, 04 May 2025 18:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746410045; cv=none; d=google.com; s=arc-20240605; b=aoEa+qnEQSfQLv8MDuFmql0rY73CIL5ZCbjElDQaQHwY+um5u3piKqLN2jMF1c+RNF femSiYEpJYf1qUGnJfoJ/cXjED4Z13YKO2rqa/sheF3Eici2Y/o6+MRKupW5zkGxhIsE b/n31sLTSmh+nr56Mr9kTpNnI79OsG9UqYOl1sCMPP5XRTLKRwYEyxEG7Wn99PkVbbd+ w9cIo892xLMTHjLjko6g08nGaEyX1dCcbNc7gSv8GDTE9tFt/fqGiriFQGOWBqsQYlZp SNqm/jql49kvJZSl0v+PmGZtaTHaRE8AFJYja6Kh8q2zGHeUjPxKhToYsoRa8Lo5j5di j+3Q== 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=8+98FJCPUkZxLytRMJNRmc7jhTB2VJSy0tbuhiYCP08=; fh=NjGqp/B1Bwp2wtTnyHxTvlXYBfwRSGY9cE7hmKIZquY=; b=WlWNc89ESxgmoUHEm579+mZxxTAE+nVmOkmxp41yz/RVAGcx/sobI5JA+nK1Is/dbi d1e9gaKfXrO9ZDEl4UhhfBSeKq7kbQRkGPIbnIBRv17SH43Z8BbQq+Kg9wEDaR3ScTmg eUOGK7ALqy+911sgog+x0wnrtiBSVbmVEFcASNO0Sg2uar0onMXC6OF5Rfh6/aJpxa+H f4g41AmE7lp/sbfezRGx1YdnSYzzLaaDFoz+hN/IafXg2abdcZHSRCoznxmSIB7lzO3O eh/GVQqIRK1V3S8bB+eiZe4iIurDHhO0LM3Oogw29Z2Li5rmhjXiI3+wpMZmcTLcLYkD /N4Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K1OYHCZU; 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-48b960cf8b0si79423381cf.2.2025.05.04.18.54.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 May 2025 18:54:05 -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=K1OYHCZU; 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 1uBl14-0004B4-QZ; Sun, 04 May 2025 21:53:10 -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 1uBl0i-0003ur-6C for qemu-devel@nongnu.org; Sun, 04 May 2025 21:52:49 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uBl0Y-0002VL-I3 for qemu-devel@nongnu.org; Sun, 04 May 2025 21:52:47 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-74068f95d9fso1023965b3a.0 for ; Sun, 04 May 2025 18:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746409957; x=1747014757; 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=8+98FJCPUkZxLytRMJNRmc7jhTB2VJSy0tbuhiYCP08=; b=K1OYHCZU1j9hr706aK+ae04cXExG+9YOvwvVFtN8m2mLP8UaMoSd2EX70mhd2Evm5N S1JPRuIXllA90XfNYeEpKuarbO1wd9kq0lqqcj52rtpgefcmL3KXgf6itbx58sDf2UvG J1o0TKZ2rpLf5X53dCTdEPYtoEnhsldQ7SOxnXJEXQL5pixUcKM2YRY9A9cyAXXGgbss pRf/FoQsTFFW1+tpHf8kySi5S08+ZzCaMd2Xmcm1riSwZieh5ViKDw2Q05KQZ8eiM3bP qCVFWMEp2lQxss3RqAng2EF2+9n6Lt7Qnf17RYPRBvM3EEl0AMLHBWVnOR9oFwDjt6h1 GuXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746409957; x=1747014757; 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=8+98FJCPUkZxLytRMJNRmc7jhTB2VJSy0tbuhiYCP08=; b=NUxC3QyL4re2YQxpNvlCeHSUteeaNC2PVhWrTJu+FWZtSoO/gk0RFyCl72hZa9AMQ9 UHv288cS1uBE9A9wWDgKZY7eAhD9pyjrPSmXyluvnbvD/s5MeCfrUI3SrLPylz/pN0Yo Gsd35PuMaSfEwo+D9jOxbo5ggSwgd8XcZL/vasOGx/nqNC1YdlGThwySydwBAwLyLRbe IAtftFZkTAdmPImlakU6+imkRH8IKXW2YBmhBFpkVNMjfqfUv9R0Mb8wNCHyy7J7dP+u xKWc+jsHN1/dvl6g9KMTFOwRx82sG1OQ1zD+5Xb7HWIp10ZM/+U2lPNBLwXVCQQKa1xq rb5Q== X-Gm-Message-State: AOJu0YwdFgNzxTbXMCpofyFzArubsxuTqMFGjbsLsm2hD1EwGs1IWopw PNKbHbonTdPZ7sXAirpRSduCaVB/FyLKm3fDRdPzORaqY9os30ptKsJl7L2NY8uyB5H/Hbk3CBl 1Ts4= X-Gm-Gg: ASbGnct75AaIf1+PWlC7K/rETl9vM+u33f1/l4aJds0Ym83gr7oHxfqVbiFttO9JABy i6y5ln/Lsxo7yawFXFuHZvLvS5ONllNNhA7yY7Z8anI91YMBLiQIoRbit29PcFXZvu+QS4vCSCb IzUHN4yf7qQanpnH651m/SqPaqWLE09mFNVGw3qpaveLMmFnJ56xL5AdIYpXonJLdIl0AMV4t51 uG9XF8x/FE9ymgE55PZ9tOHQ9cgCTQXOrQ0TfWD3wxT2ImEViODoaT7XphHiWeWNFK3GFQeIt6W rdCrU5UYPl9dEIF8iTwxNS3bw1/zpp5I1DRfIZcV X-Received: by 2002:a05:6a21:918b:b0:1f5:85f9:4ce6 with SMTP id adf61e73a8af0-20e966058bdmr6970804637.11.1746409957268; Sun, 04 May 2025 18:52:37 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b1fb3920074sm4462101a12.11.2025.05.04.18.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 18:52:36 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-arm@nongnu.org, richard.henderson@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Peter Maydell , anjo@rev.ng, =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v5 10/48] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Date: Sun, 4 May 2025 18:51:45 -0700 Message-ID: <20250505015223.3895275-11-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> References: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x434.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 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 37b11e8866f..00ae2778058 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1183,8 +1183,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); @@ -1342,15 +1340,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);