From nobody Tue Apr 15 18:52:48 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582291656; cv=none; d=zohomail.com; s=zohoarc; b=LwVQmSw2aoOsEIZ5v9yYOVtFNrK6dcpL6qyK0+8Db21NtYGrrKHUpWbuAoih2m2mMOnJNmzVZV1O9tEfZfUGA+MnDL9EP9aPHXV0ci9xAWkCItN7FsHag7eAVo++kvrg8oVoQoPXD0QWPztwJSQYvqQ6s/QgRtUg1WC63Baud1w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582291656; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9YDEWfTgYbtJnejtZ5TxG4cpNRlX/38cACEqimzClc0=; b=R9E7yB3nnIsyveWEchSPDk88Az7F7AW/mfAa3F/DIoi61mYcugLa80tY6pI5pzpdqwUkqgJGlVvWK6lUKeF6Uy4Ug4aSRc1BM7mOOn0SA0u15dvXC0Bg1igB0LhGgaRkE/RcRuxpm/FuE6bmS2IuUZWHcDWo8Ni/91GA5j5yT30= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582291656991175.0401923637321; Fri, 21 Feb 2020 05:27:36 -0800 (PST) Received: from localhost ([::1]:57642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j58L9-000401-PO for importer@patchew.org; Fri, 21 Feb 2020 08:27:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56843) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j582W-0007Yr-PO for qemu-devel@nongnu.org; Fri, 21 Feb 2020 08:08:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j582V-00036y-PW for qemu-devel@nongnu.org; Fri, 21 Feb 2020 08:08:20 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:40380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j582V-00036M-Jf for qemu-devel@nongnu.org; Fri, 21 Feb 2020 08:08:19 -0500 Received: by mail-wm1-x335.google.com with SMTP id t14so1774601wmi.5 for ; Fri, 21 Feb 2020 05:08:19 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p15sm3598892wma.40.2020.02.21.05.08.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 05:08:17 -0800 (PST) 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=9YDEWfTgYbtJnejtZ5TxG4cpNRlX/38cACEqimzClc0=; b=JPCbO69M6gUgiN5X1o1Oo7L7typeOWAVGP8vCfx9+qlIUg3BYwkwBjyp82X+4oBrjd cSJSnV9L3jRUTJiQ5buVN5stpTAzyvFrQFRQLpv8BtwPGDmznpxoLHc5lT1nb6tMWN1y KYPMaLkjpLTRb9hFTgPWnHnMFMJXzDlbWuJ7dH+FqzHmUO5iheQwo4RvrcqJlT0fCKVa WpxQJoUrlgWZi8DrY5j7jgjvHJ2LuMyZn4Ok4oIS8lEgzljZR9NBzrKReHzzkPy6jMQJ koFqXo70T2zDCEexf5LeeDGJ5Pg7RwzOyzSCqNqxUK/9hIFffdbE4+Vxh4bLA4eYADUr SKIg== 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=9YDEWfTgYbtJnejtZ5TxG4cpNRlX/38cACEqimzClc0=; b=VrTjBJ7dbwS7hg59E/pltJ4G79Znu47W5hK3LtVGZ33y2trrvh6N16SYFNJELakLav UzH+5LEPWK8MZvXhRXtGtUHw3d3h4duvSsD3Tjq1TkM2h+eao/XPxN53LtDjlxgtqEfa Sgyv79ZdhJTpIT33R9w9Ll2J3Ofh0VzQKJaM0/ahMXo4nopsCVmKKX16lUhrbAMF3GrA PijbY2nu72XQvEOlR/ty2iWHdAqahmfdfda4q52AI7gtVxyZBGFPtg4j94aWfIqyN0Fg b2zpc3FCIHi44S8SBJOnd5fMILBefBFoyv+zcXSs5Ybv022FGpx13RHtXD1dVYJEQDoa v7Ug== X-Gm-Message-State: APjAAAUKdNZS47c2d5xrOgbpfCBOHlQdplS1rsfwwg4eJfL7MY1oYiMv O028v9ZWy5yN9r3qxrpRqOzQvJkZ1dKqsw== X-Google-Smtp-Source: APXvYqwr9PLOlTfS00vDi5LDQRaDlePGn/g3SWRWlS2ql60Cqf0AyGykLFMlQkUY5MpVY3g0yD6xHw== X-Received: by 2002:a1c:f003:: with SMTP id a3mr3871204wmb.41.1582290498041; Fri, 21 Feb 2020 05:08:18 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 29/52] target/arm: Correct definition of PMCRDP Date: Fri, 21 Feb 2020 13:07:17 +0000 Message-Id: <20200221130740.7583-30-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200221130740.7583-1-peter.maydell@linaro.org> References: <20200221130740.7583-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) The PMCR_EL0.DP bit is bit 5, which is 0x20, not 0x10. 0x10 is 'X'. Correct our #define of PMCRDP and add the missing PMCRX. We do have the correct behaviour for handling the DP bit being set, so this fixes a guest-visible bug. Fixes: 033614c47de Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell Message-id: 20200214175116.9164-17-peter.maydell@linaro.org --- target/arm/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/helper.c b/target/arm/helper.c index 72c9c7e694a..e868b08cc18 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -1017,7 +1017,8 @@ static const ARMCPRegInfo v6_cp_reginfo[] =3D { #define PMCRN_MASK 0xf800 #define PMCRN_SHIFT 11 #define PMCRLC 0x40 -#define PMCRDP 0x10 +#define PMCRDP 0x20 +#define PMCRX 0x10 #define PMCRD 0x8 #define PMCRC 0x4 #define PMCRP 0x2 --=20 2.20.1