From patchwork Thu Aug 31 10:45:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 718954 Delivered-To: patch@linaro.org Received: by 2002:adf:e5c2:0:b0:31d:da82:a3b4 with SMTP id a2csp394580wrn; Thu, 31 Aug 2023 03:46:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmDFvzcgda8tM6sCqg2O+slEzxC0XqWGJ4bO2wmNZujgKrAaQePjhgLq7YLV5SCLYCxqXC X-Received: by 2002:a05:622a:143:b0:412:1926:3365 with SMTP id v3-20020a05622a014300b0041219263365mr2851493qtw.47.1693478763864; Thu, 31 Aug 2023 03:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693478763; cv=none; d=google.com; s=arc-20160816; b=bbz7ZlavzVBfUXVONeYy0V/0fX+6uPJAqdGxU2dK3XFm9wT93L7P2YRHrlRFU4+e+7 FpkA9+M2cpUU8XOmrchmcYCtfIhCUF3Drim05wjqaP7FxZ3CYIreVN0YXwOdSSu7pBM8 OwuvcpoJDyiV6c/1oRp7Lb6ex5yRVIJT38Vqsu1/33yTfH3MzNPfxdh+ipw9kPzkXLEh JQ7icgM/RObwQElXZxN/OM+HhOW24KdcbuUXKCkl0gnNKTQvrlIqRHaKtX8YMEjDhNyp I48VCHcHqcWMMkr8KARTMHREQK7Vov1HrSShs1Tzellb1CSLQZzOSFRoMN99DsgN2dGQ FKJA== 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=QU826JqtU7kXfHncN4gi9tl/7HUQ0VtfB7fV2Nl8dBc=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=WijA6VuAjy4E6+HMnTDG1X5gaF1JsSTFHTnpDAjEEqFM7pc6hIyfRHhfB34IqkOxty Dl+bPcPUrkeUx9PHs0gN6oHxvO/MA0q8SH/jxK2VnZH3cVk57nCQ/tS/f5Lq+4GR94aP r7T8GpWeXSwRMG0Gt5+PMYSnMvNIV/wYB7EU1mgDl6TgIyeoJ4hygjuPdyo2H1iA7fct Ad1T5L62Kve0BreuwvEsJajmTUSlU1GWN5QIYHQOdi5ljXZrAWe07H2EbN4ugYAqhsAs xkLGGFRJ4vUyIhB3eb9NbVO41xtQAAe8319tTRC7Gj3sac+JukbTmk4ikaOkBd1DQhEj RGbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YeKRlXTj; 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 s26-20020a05622a1a9a00b004109f81d9absi652758qtc.155.2023.08.31.03.46.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 03:46:03 -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=YeKRlXTj; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbfBE-0003h3-It; Thu, 31 Aug 2023 06:45:40 -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 1qbfB3-0003R5-Qh for qemu-devel@nongnu.org; Thu, 31 Aug 2023 06:45:29 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbfAz-00042t-6w for qemu-devel@nongnu.org; Thu, 31 Aug 2023 06:45:28 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-31aeedbb264so526072f8f.0 for ; Thu, 31 Aug 2023 03:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693478723; x=1694083523; 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=QU826JqtU7kXfHncN4gi9tl/7HUQ0VtfB7fV2Nl8dBc=; b=YeKRlXTj0+WXFWQlCGUiAd0vr6ROVJrc+afALHKqLcfMs+smwrybcsHfRA41KcIgJV 9z9F+VGVYMYkv62Decb+Ld/AX6vowBDWQe0IvricA1Abx5jQsiRALQmR6U3scrJtNGvg FI0t6Kd+8t3wwDEKCkFh619+wACjM0Dia+4KBu/y8uUn9i2/YJErWPMnanLqV/B3Q89U 2kTJpHQoeMM3y7MLSDU20wNJzbJctqXzK0WxBz5HaTGXsd6iaoy8NLNbqOcQQuAxyg/5 IA3DfShZzLxcMpiV8zi+I9FQ2IDH2AgrMOy1zuXQFYudADyeRM+vQy5mKmz4cuQGPfHr XS1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693478723; x=1694083523; 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=QU826JqtU7kXfHncN4gi9tl/7HUQ0VtfB7fV2Nl8dBc=; b=ZsPPK8F+vGLeY6e2o7jCwqLXQ4LoktV6aFYf1CFKkPuXki3Dtxz8qk5dWIPOye7WkF X+CqsFWUnzWbgxDYg10CmqbVE7c2nX/cRGukQZzVBtGv/LHPLQ5+jcyJ9H4P2MEX8M5l 4MupLnqHUGOI8c6DJvQnw3X2mGfriLDWgWVfXaCWjSh/YSU5juwlIRbZBuxNsuOSlrPH aUplBnoR/yhVseOJlzenVUo77AhTmrDRj6GZuwK95DdN84xZKo7GuWFPq0Ou+bJsY32T F/Nk3K1yau2Ej1CqdzlCeTOlvIYCm674uE5swNbg6pdTkLcaOiZeFrYbmG2FOF9wDSYy gefg== X-Gm-Message-State: AOJu0YxqC8+VgQ4uoVyTjOo+8tkE1gx/QTLohfJdXDH+qug57o1gNh9r yLj7+h+XGXmoa47LkhCVJZhm0ccMLBIhEUsQQPs= X-Received: by 2002:a05:6000:4d:b0:314:3740:7f69 with SMTP id k13-20020a056000004d00b0031437407f69mr3464811wrx.37.1693478723527; Thu, 31 Aug 2023 03:45:23 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id l5-20020adfe585000000b0031c71693449sm1785524wrm.1.2023.08.31.03.45.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 03:45:23 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 07/24] target/arm: Apply access checks to neoverse-v1 special registers Date: Thu, 31 Aug 2023 11:45:02 +0100 Message-Id: <20230831104519.3520658-8-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230831104519.3520658-1-peter.maydell@linaro.org> References: <20230831104519.3520658-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x432.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: Richard Henderson There is only one additional EL1 register modeled, which also needs to use access_actlr_w. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Message-id: 20230811214031.171020-8-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/tcg/cpu64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index bc3db798f09..b0cac05be65 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -560,7 +560,8 @@ static void define_neoverse_n1_cp_reginfo(ARMCPU *cpu) static const ARMCPRegInfo neoverse_v1_cp_reginfo[] = { { .name = "CPUECTLR2_EL1", .state = ARM_CP_STATE_AA64, .opc0 = 3, .opc1 = 0, .crn = 15, .crm = 1, .opc2 = 5, - .access = PL1_RW, .type = ARM_CP_CONST, .resetvalue = 0 }, + .access = PL1_RW, .type = ARM_CP_CONST, .resetvalue = 0, + .accessfn = access_actlr_w }, { .name = "CPUPPMCR_EL3", .state = ARM_CP_STATE_AA64, .opc0 = 3, .opc1 = 6, .crn = 15, .crm = 2, .opc2 = 0, .access = PL3_RW, .type = ARM_CP_CONST, .resetvalue = 0 },