Message ID | 20230824092836.2239644-25-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 3d9ca96221ba7212aacb27ec472f0be703e99a78 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1237363wrp; Thu, 24 Aug 2023 02:33:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJ/vXzv499R6TAJWat+jVO83jt8GJeZ8BGKTqyc1CU+0yCynU2qOJb6/6rJYV8fLBgKOTu X-Received: by 2002:ac8:5bcc:0:b0:408:1807:5408 with SMTP id b12-20020ac85bcc000000b0040818075408mr20976334qtb.11.1692869626504; Thu, 24 Aug 2023 02:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692869626; cv=none; d=google.com; s=arc-20160816; b=l7hswuR0JIrmOKN5Bko0nS/2zU30uBi6KNByM/DewzdaImyBBy2DdC3boCGSeIzFx4 j/JWNDi4SKavzkHSfz8BbrjdPK40td7vZxx9UfGxOKmsDFuddMI5yCWb9p0d4qsbfn1Z pb2qqNyq3kWKeQSW8Rvx3dzD0bexXwYNw8lNovPDSM9IV5QoZNIJ48biS2Bvn/CSOoOb WQPMHsqJrlXs3XuDvzBS2HFHE9d7GheJBBoOOoCZGCGNJZ97SW1ihhyiKOTJjQ+lmUTw BJJ4aZ0SXOQaOYlVoxV7dtyCkLiaJOFr3t7KxVToY7zl70xciXQqOmUYJZp7TifCvSly O3dg== 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=Nl4ZpUZkjwvYqdaFnAmzJsKgzFy+tbw4XNF5WJzIR8U=; fh=bFDrUYhlTVi/QyetgXx/byg2+yO/22Hp9SjwoefyKLk=; b=kHboqXM/qb1XjwD2K9scLnFBVZ5Vj3VK1fo3NQVMiusOZS/ivVjGHpklxD5s6+Iycg KoYhFrTIrq8BgNwAz5FbPPmhyNlGgv2HyewwlxQOahejA95rEreavlTN9KcOKXYOGai3 DCjr2M9NKZUUp7QVhbugRFcAWpPimpp6fkfl2ITPnfpKTTkjsc0jyt1wRo+Xes4v9N2Z xQLMflPMAj9wtvcCgdBjWisTpZdMe6dpaTjYDtcDkodmD0moUEGDTWJU+laDK8EvRSlz HxESXGZATLBoN+UsZNX65I1oV3gClrteUcvEwBLSUm+pu8oZOhQHrogSivmAOGnG+XNi H4HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kdWzd7Dk; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r6-20020a05622a034600b004084b9eeaf7si8347412qtw.357.2023.08.24.02.33.46 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 02:33:46 -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=kdWzd7Dk; 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 <qemu-devel-bounces@nongnu.org>) id 1qZ6eF-0004bM-EV; Thu, 24 Aug 2023 05:29:03 -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 <peter.maydell@linaro.org>) id 1qZ6e9-00047X-UN for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:28:59 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1qZ6e3-00051I-DD for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:28:56 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-317c3ac7339so5525711f8f.0 for <qemu-devel@nongnu.org>; Thu, 24 Aug 2023 02:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692869329; x=1693474129; 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=Nl4ZpUZkjwvYqdaFnAmzJsKgzFy+tbw4XNF5WJzIR8U=; b=kdWzd7DkKdh+M3eYxNGQyo45Wic+zkTqOtqyWCh6GejzJK79/8HS/5HFhwmt3zv50W G7qTaH69kc0XYC8VKKe7EL1CRvhDq4OxT6kW/IAtz4KPtgZWDeH8rndG8X1ViJ5PeHet nPUfNayWsPBFHBSdvCC51fQthYs3b5mIYdes0v2E5RkqGHrVgNvtYExh+XDbFn6XmZXc 0sBGXpUpNrnkQWMX9YfqGGbCJkJTyJ4Yb9rvsw90BQQA4JuTVOWx1NO18MWJkXnGxLqP oyu9ubJdr/DQFA0D3mmeT+AC0dWlNv2Dp0QKPjG8K3BK7YcRH5s0dH3gmxMgoDIT8co8 lZCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692869329; x=1693474129; 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=Nl4ZpUZkjwvYqdaFnAmzJsKgzFy+tbw4XNF5WJzIR8U=; b=ZN+iB7HIdwpIHAchJzC8/XypCyDrUNMCsivBGGqpMFSCWPBFjf9IPuH9DPMtQHtGRF Ss2+UiCvtloRCiL33Sb0qiZeUYZTif7bKjx7xhPj+/UZVy3mcgUdgshXzXut/ghHkWqY IvXFKRyJbSOUZWfLKuHQCmK1c0cOz68SLBDMWFZzfs004Sf6VPwy6ZKR4RRA6Y0l9Obm CIw6jBbQanl3jZIv+r5YnlcNMoKHnjZutgoeShyRAsLoc5+9vuhLwRIM2oDUbINTK6b2 /6qtox1yROLOx35yTm+dBHpAgs49uESzcWHpf2qzwMzZ/un8VEoZRcxKtr1Yc2hcUAu5 YK/w== X-Gm-Message-State: AOJu0YyxYzkebCotEckz7fyk/7cPYWxySI97EslMyMfidqStszE4G/tV ORXVUTNSkZrz6BF4TATuaf8QJGZQNAB5+yy+rY4= X-Received: by 2002:a5d:6308:0:b0:313:e953:65d0 with SMTP id i8-20020a5d6308000000b00313e95365d0mr11820296wru.28.1692869329640; Thu, 24 Aug 2023 02:28:49 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id s12-20020adfeccc000000b00317b5c8a4f1sm21844004wro.60.2023.08.24.02.28.49 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 02:28:49 -0700 (PDT) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 24/35] target/arm/ptw: Set attributes correctly for MMU disabled data accesses Date: Thu, 24 Aug 2023 10:28:25 +0100 Message-Id: <20230824092836.2239644-25-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824092836.2239644-1-peter.maydell@linaro.org> References: <20230824092836.2239644-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/35] hw/gpio/nrf51: implement DETECT signal
|
expand
|
diff --git a/target/arm/ptw.c b/target/arm/ptw.c index 312ccabe92e..7f217a31895 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -3108,11 +3108,13 @@ static bool get_phys_addr_disabled(CPUARMState *env, } } } - if (memattr == 0 && access_type == MMU_INST_FETCH) { - if (regime_sctlr(env, mmu_idx) & SCTLR_I) { - memattr = 0xee; /* Normal, WT, RA, NT */ - } else { - memattr = 0x44; /* Normal, NC, No */ + if (memattr == 0) { + if (access_type == MMU_INST_FETCH) { + if (regime_sctlr(env, mmu_idx) & SCTLR_I) { + memattr = 0xee; /* Normal, WT, RA, NT */ + } else { + memattr = 0x44; /* Normal, NC, No */ + } } shareability = 2; /* outer shareable */ }