From patchwork Thu Jul 29 11:14:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 488663 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp2064974jas; Thu, 29 Jul 2021 04:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhYjenktOL28f4Cux68hKuA1QtfDb4oRtOj7eA4FJL0EQG1kYMTBFoNWJdXn3pOAewYTqY X-Received: by 2002:ae9:ed56:: with SMTP id c83mr4577483qkg.101.1627557511992; Thu, 29 Jul 2021 04:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627557511; cv=none; d=google.com; s=arc-20160816; b=i4uZ4muw3kKPeIiXgR4X6osx9G4pMT4nLrp9cAaVwbAaAtRc/GbRqAEXN6NFNgmxka 9QwHq0cMKpnfEJC4N3nCKHfAoM96xeUNm5UmR549tep1a4SfT8US0AKOCk1ag8bM/5Vy xMzGFJVPoJM/IdBFfMc59rVAQZchqB6AfCtJgMBSwo1EzoUSPlwSVZUg3mSnVLzLvKbU CD/28+no/WlOZUY9rOJysSKp0mohjZ93y/wuBvU8todcqM3OnC0JdVvX8v17stcmzOm2 NVqkX6178o0FE/oNrn99qPNWy3sQrox/CLUOT8NSqqr13JM+do81JAcuI22EueTT9iA/ +OXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=X46IYmwDa0Vu+Tiq/N7j9UCGpxEaqTWhGbb7xdBU5TU=; b=EaKDp1CLlRG/SMPEs31SrVf+vPvsYAkiAo0+hPbUItoOBdOi8qxU92On96Ud2TGj4f plE9LgxCuMJn1uwhU6L+f/xsPfmrLOzgAxTHiN4B1ueEjvfsHAAaintk4oEpHnPkjR7d YZDopwzzDmhwZTCTEfJAB0HztUVEuFtAGAT5voy7O9IQQ2CgoLvQnqHHY33RtkB+k9rl U5PrSE4RTJ+oaN0tji8U5EGYtvWRXuPABGG4iXJd9FSjtf1dEliCTz0jYqCD+0a2mlMt mN/PBueClqmwnh2my3VbXn0VZuCxYY9J2HuLpX+MxeTxwIk6pZI2/wejb1YgLA73dC8P eVLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WH01ZJuH; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jf10si1815174qvb.158.2021.07.29.04.18.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Jul 2021 04:18: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=WH01ZJuH; 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 Received: from localhost ([::1]:51628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m943b-0003uE-BV for patch@linaro.org; Thu, 29 Jul 2021 07:18:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m940d-0000CE-Er for qemu-devel@nongnu.org; Thu, 29 Jul 2021 07:15:27 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:45892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m940T-0000uk-PO for qemu-devel@nongnu.org; Thu, 29 Jul 2021 07:15:27 -0400 Received: by mail-wr1-x430.google.com with SMTP id m12so1648139wru.12 for ; Thu, 29 Jul 2021 04:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=X46IYmwDa0Vu+Tiq/N7j9UCGpxEaqTWhGbb7xdBU5TU=; b=WH01ZJuHu69DDGuF8DmKOAcY/rbpiR1Ksf0wH8yhWQHmjwpRwY9RyBw7UG/BodlJ/Y PuFHIPvHP6dqe1NuxefNXoEWdfJrbMpxM7nmE/ZJR4UexcKt14y+bQ5h/z9oOsh3Phdw rHxejHJ3TLGEnAylLlT50UklLO71qM+f7ZMIFcieTuMxOS/Rkdz0JEvhjSrEz2Q4zFRY MfMxyOSw184ZvMjDo/GnmZrHEyju1ij48jJ53yf43Wbt9gEWS4f9LcAq+13VS+0K6GlO 3ktVNpFlIqIDyEqyP0JO3iDQNgqsqXO9g9+7xI5kZmReMfmwM5z5YJsmsFy9BVC/zuJd rsvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X46IYmwDa0Vu+Tiq/N7j9UCGpxEaqTWhGbb7xdBU5TU=; b=KOiq3jKAVqhUgVid8GW5dLudV5D451rMfrwRKPixq1j9CzlzpoLN8Y+BLc+tY7YQ5r JpFu7M9LGkZDwKPOWV3Rqq3RAqsNTMimwN9uGLj9GHdCYKC3SwaUlG278fW8aGJu9x6y DKPCAhaJKUcGMFh/6Yl6j2Gm5s5sYFzB/E3juG6eUoVjo9Z0EUkvVUdFeSKMM3sy6TJi 6pjNvXBstpt90vlmPbz7WsrnmLVAb5MLx1727vsNWUcEXPP+p9DUEZBby8Nc0FHL/JV8 1Dywx1JF8+mIQ9JjWVxNADPl/nBuHBYIgMortEWNbzKLg5/qIDa6o502Aj8Wd5CIzuzo 0ZKw== X-Gm-Message-State: AOAM532zzjYlvXlTVe1fCGFpP1V/JEYuPLAvGJ/97quYyWw8rZ8l67RN WIT049pIuXSVmTi6qJ9EgdMA2Gqy84fWMQ== X-Received: by 2002:a5d:6608:: with SMTP id n8mr4115122wru.427.1627557316473; Thu, 29 Jul 2021 04:15:16 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id j140sm3037829wmj.37.2021.07.29.04.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 04:15:16 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH for-6.2 02/53] target/arm: Print MVE VPR in CPU dumps Date: Thu, 29 Jul 2021 12:14:21 +0100 Message-Id: <20210729111512.16541-3-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210729111512.16541-1-peter.maydell@linaro.org> References: <20210729111512.16541-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.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.23 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" Include the MVE VPR register value in the CPU dumps produced by arm_cpu_dump_state() if we are printing FPU information. This makes it easier to interpret debug logs when predication is active. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target/arm/cpu.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 2866dd76588..a82e39dd97f 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1017,6 +1017,9 @@ static void arm_cpu_dump_state(CPUState *cs, FILE *f, int flags) i, v); } qemu_fprintf(f, "FPSCR: %08x\n", vfp_get_fpscr(env)); + if (cpu_isar_feature(aa32_mve, cpu)) { + qemu_fprintf(f, "VPR: %08x\n", env->v7m.vpr); + } } }