From nobody Sat Nov 1 07:48:34 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526497085671853.4609144936213; Wed, 16 May 2018 11:58:05 -0700 (PDT) Received: from localhost ([::1]:34189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1ci-0007eQ-Oz for importer@patchew.org; Wed, 16 May 2018 14:58:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1Wu-000337-Ub for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1Wu-0000jl-8r for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:05 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:35827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1Wu-0000ja-1F for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:04 -0400 Received: by mail-wm0-x230.google.com with SMTP id o78-v6so4302670wmg.0 for ; Wed, 16 May 2018 11:52:03 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id m202-v6sm779410lfg.36.2018.05.16.11.52.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F8YuqPcoMlrPY8X1uzL8nO/RxQ4DLnZlQjO6I/YPEDc=; b=F481dIL8VpLwnrS+PFnDewehYEkEXI1Xdmhmr2qekzz+oUyzKCJEDWwoWsQAUGWoR+ yAWFZ3HCf2ACWTyoO6M3bug9o5pe8T1GG6o1PKAlPV8aRwJEfv7d1aGwvG2tZnFlP6iY DfDtg05Bbzrpqr81kRhBE2njf3LRrsZyGjIbmvDUJZA7Vl/DHYhCW/I2I5ucMiMzogcF gCuOtCTHbypmHvUI29Gh5EzmDyALoukp4KukE3FMSRfc+hDoWKvzdvje2fogmOHocNpm wZOABlFe1YMNck1ebqAqASp/jlCVQHh/C5S0ZjZ54i2ejNw2dPVNgeDOc9CsrEJ3oSnG 081Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F8YuqPcoMlrPY8X1uzL8nO/RxQ4DLnZlQjO6I/YPEDc=; b=um50jhwKXPjKmoWkJV9qnTEwbShAeGulG6qff6Qyv2iZAACjmVNiOAu9eRhmpRA1qh 3Mt9Kq0VauNrkT2qHFMPcQ8nuSNm0o0/lzp0scmDde/j5893X17JXvq64AC2DZDtV8+m DfDbrHgbgSWQePgcs/3ouhALPTxj5pJ6sURqlF3UZTwywCCHhZfocW/SiDrrvVx+gDCf t1Wq/nPxA32aLSm3OSL94iRVJDZN2dPnGB8zpmsIF3iDNvnfkk6bksfrodfrGSN5ewQo jk/NInI/MNRpo1xbAY6GzEOBlsoOKCxnCdmBiqljmveQ4UsPMaAchr/ttfvJoRQRG5/d gP2w== X-Gm-Message-State: ALKqPwf4i3v60iBVnvV17fxWnptORwvMZOLpnrcPUFtBk+HkGMhpdLBq jqcuLyEUJiPR4T1dspqcjAYcPw== X-Google-Smtp-Source: AB8JxZoHMiN9hdH2A34okjMQBO8y396Vm9XTJZn8VvL8Azt14dDvOSfHAuPRR7LJY7rXxF/I2zxB4Q== X-Received: by 2002:a2e:740b:: with SMTP id p11-v6mr1221395ljc.59.1526496722639; Wed, 16 May 2018 11:52:02 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:17 +0200 Message-Id: <20180516185146.30708-10-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180516185146.30708-1-edgar.iglesias@gmail.com> References: <20180516185146.30708-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 Subject: [Qemu-devel] [PATCH v3 09/38] target-microblaze: Conditionalize setting of PVR11_USE_MMU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Edgar E. Iglesias" Conditionalize setting of PVR11_USE_MMU on the use_mmu CPU property, otherwise we may incorrectly advertise an MMU via PVR when the core in fact has none. Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- target/microblaze/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index 06476f6efc..6fdf0fd223 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -201,7 +201,8 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **= errp) PVR5_DCACHE_WRITEBACK_MASK : 0; =20 env->pvr.regs[10] =3D 0x0c000000; /* Default to spartan 3a dsp family.= */ - env->pvr.regs[11] =3D PVR11_USE_MMU | (16 << 17); + env->pvr.regs[11] =3D cpu->cfg.use_mmu ? PVR11_USE_MMU : 0 | + 16 << 17; =20 mcc->parent_realize(dev, errp); } --=20 2.14.1