From nobody Thu Dec 18 19:36:03 2025 Delivered-To: importer@patchew.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=1618315805; cv=none; d=zohomail.com; s=zohoarc; b=BX5ZixkfVoKvnMWECfwSj2FSDvXAAsrnfoFCRGnT5EbVoXq3Nfo8z4DI5WI9utetzKP7hH7LfVA7RT5XXZzHGYayk6rvj+FnFUXWmVv/EpVMT6DNwefma+xewzXwb13F9SdzlX+PUyXyPiBIe9ft8Ejj2z2dyzgXoKiWUcAelLw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618315805; 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=TZi3a++hHJ8/RuSozHubV+jvMjnNryNqhY5lxnqN274=; b=PsGFOmvMKyV4xTsztcTAbAragNJt6lEfuAAPPmlsaXtz5GREZJK6leoKEb31lSn7/QdzHIVVJdJ2zwJygizltGeQQF9uqD3MKy7y9VSBHS4ITY8AFpILqVz0dY/cyHZ1X0bNjG48wNcjJSpncogl1A4yaQOk34PIS9O1Ug0/x0c= 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 1618315805322496.12362213694814; Tue, 13 Apr 2021 05:10:05 -0700 (PDT) Received: from localhost ([::1]:40454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWHro-0001bq-Kn for importer@patchew.org; Tue, 13 Apr 2021 08:10:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWHpm-0000QI-GM for qemu-devel@nongnu.org; Tue, 13 Apr 2021 08:07:58 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWHpk-0004g3-Rg for qemu-devel@nongnu.org; Tue, 13 Apr 2021 08:07:58 -0400 Received: by mail-wr1-x429.google.com with SMTP id g9so164777wrx.0 for ; Tue, 13 Apr 2021 05:07:56 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id o2sm2245275wmc.23.2021.04.13.05.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 05:07:55 -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=TZi3a++hHJ8/RuSozHubV+jvMjnNryNqhY5lxnqN274=; b=diNfmtb2u86kG67INmACsmbn7OFOJC69xmY8QPMhH2B2zxIB12MHBcnVd4PKEet9Fd N1Fh/SgaaxeFOCfFoKXXSqnaZlgDr4O3F6PJRV4u7hrW2C7eq67a0GW/l0s5z9sYFczj nmY5By4fE5r3kzZQJQW5h9hqcPRADK3f3ZeTLn0cInvyFB4+UGJizO+a7PTqYnpzCnQ+ QzPuKQJxN/A/a7JF1csJNCcwWHLhXVTVwyBcrUSgcmG8uvQ3j4dxe/43WoG1YR5/yz33 okLtzPaJlq/5zPbenYqmglUoA6wHqEKT8U5vNAMSNztiHhqphZWrhjpw9G+vWHbiGshI N4Tg== 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=TZi3a++hHJ8/RuSozHubV+jvMjnNryNqhY5lxnqN274=; b=ZIkHpv+i7NlBi22LbeSSioysMm5s/Jk9+xH54kQItfuJdTLi5X/Tr1UxfxI2/c/FNy ca0+2z8CS0wLcuzEl0j8WbMwJDRhsNGDkKWkAe9QDgBTm1YfnaDCvuzHl0GarTIP2Ed+ vgQfEDUdJud+hMam1sLyFMPoKC0xsODvsLalUOiwXzfDJtrNFQHX3gkNsiMBqLIRJ/pB R8eL8+CnanCK/FcsQZx8OVA+XLvMyV6h+kfijMVHbBo5zFbZXgcOoT41mAPAgQEHMPbG bdaYoczWUXpw1lsP24sjfH1W9QkyBiGfOFNi0SIwGCWHMpDdwBdRcafX1cJaXPfWEhgv mcmg== X-Gm-Message-State: AOAM533wx2+3gRlDYP4bxUQ12q7y6LoAl03WViC5DOj7gC7G3MU3a8pp n2AulPaQ5phCOSCFzB8oQcLSdW5M6hP2FI4T X-Google-Smtp-Source: ABdhPJxnP72AQRhcM3ZSEga6DNvyckA3fkwZrzDfFADIJKMmwnhPDevhG0ibAElcHB1iJ1RA1RKjMA== X-Received: by 2002:a05:6000:10c7:: with SMTP id b7mr36628991wrx.143.1618315675480; Tue, 13 Apr 2021 05:07:55 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 1/3] hw/arm/mps2-tz: Fix MPC setting for AN524 SRAM block Date: Tue, 13 Apr 2021 13:07:50 +0100 Message-Id: <20210413120752.18699-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210413120752.18699-1-peter.maydell@linaro.org> References: <20210413120752.18699-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.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.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 AN524 has three MPCs: one for the BRAM, one for the QSPI flash, and one for the DDR. We incorrectly set the .mpc field in the RAMInfo struct for the SRAM block to 1, giving it the same MPC we are using for the QSPI. The effect of this was that the QSPI didn't get mapped into the system address space at all, via an MPC or otherwise, and guest programs which tried to read from the QSPI would get a bus error. Correct the SRAM RAMInfo to indicate that it does not have an associated MPC. Fixes: 25ff112a8cc ("hw/arm/mps2-tz: Add new mps3-an524 board") Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20210409150527.15053-2-peter.maydell@linaro.org --- hw/arm/mps2-tz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c index 3fbe3d29f95..5ebd671bf83 100644 --- a/hw/arm/mps2-tz.c +++ b/hw/arm/mps2-tz.c @@ -238,7 +238,7 @@ static const RAMInfo an524_raminfo[] =3D { { .name =3D "sram", .base =3D 0x20000000, .size =3D 32 * 4 * KiB, - .mpc =3D 1, + .mpc =3D -1, .mrindex =3D 1, }, { /* We don't model QSPI flash yet; for now expose it as simple ROM = */ --=20 2.20.1