From patchwork Wed May 16 18:51:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10404725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6BBDC601F9 for ; Wed, 16 May 2018 19:11:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C4E8286EE for ; Wed, 16 May 2018 19:11:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A0FD286F8; Wed, 16 May 2018 19:11:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D6D9128686 for ; Wed, 16 May 2018 19:11:24 +0000 (UTC) Received: from localhost ([::1]:34289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1pb-0002Ef-Uo for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 May 2018 15:11:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1XT-0003X0-3A for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1XR-0000yK-MN for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:39 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:39422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1XR-0000xh-9w for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:37 -0400 Received: by mail-wm0-x243.google.com with SMTP id f8-v6so4257136wmc.4 for ; Wed, 16 May 2018 11:52:37 -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=+YJnD3ADtPzHx7QtyVmBJ2lTti2ReOc4v5mUlbVLsEM=; b=E28vBFHgjT9F0qgQ4sP4Ezf9UuHgnUxg7EZgVcRMY4MYyntxkHzD3L7lDomklpXxVX LA+RIxFKFNuR+e6bZhFXyAVUZeEdK98BnCuOAEA+VZUXOK9goOMhOO2MFq1WP7UUu2nd 2VmbBkTdkiZadQYvTgHYZuNkZy3iqPgzJO5/DB6E7pTBDSUBEtBb0msvlAwH+qzYb8zj 5skMu4T++QkdtkD5ZYAGxblfGVlxAug/Y88rfvS6tsY3v9sjQrbuajV/Z42q9/ziHfEC psVT0JYgiXtfZJgj9Cse1hWJTAmhF56Cme07ysn2+cmQ8Rg5AlkusL0dtFn2BVLeqJQJ atzw== 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=+YJnD3ADtPzHx7QtyVmBJ2lTti2ReOc4v5mUlbVLsEM=; b=JzoGtP4dxqYi1IaohDX7aa8uCiqVgNLcptuHjUzbG1Z7EO9nO++M3xp8+VhdyWKL1E V5w/AAB8eUA1MFJdepNi4s+JUHiGI+RSnckxfW8Rg6bNRiO3X+95MKhajSyHyLCzl8iz wASLR5gahLGn9LlcDLPGLk1QOG6GlV7HAapm+hNrcwrGsthUZnIGnR0AaEWKquhz+M1D pQw74DVSH+2lUAsJDsDPzDUC1JZq0NZd8gY8apDsfh/GjQMiZo1nUecC8AOF1v0BQjYU cXDzp2am3z+lSQeXYcdgo9UBmeNIxPXVnAGynrystGFdI0MGnhyWgBWX9cDy3fSm5n0D MxFQ== X-Gm-Message-State: ALKqPwdM2lRLAKJYuTNycB12xvZjOZXEZxpRmcqsDko/OD3LKv6aQj/q 1TH4SoOwN78H2RByNsIsjuctWQ== X-Google-Smtp-Source: AB8JxZrWapk45N+nm49HydHOGy5/zj4Flt5Z6cX0OpGBbcNMiATDXHqBwYO8LGcHMh9ycQTGVyH/dw== X-Received: by 2002:a2e:21c6:: with SMTP id h67-v6mr1261919lji.132.1526496755940; Wed, 16 May 2018 11:52:35 -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 g134-v6sm772977lfe.46.2018.05.16.11.52.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:52:35 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:38 +0200 Message-Id: <20180516185146.30708-31-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::243 Subject: [Qemu-devel] [PATCH v3 30/38] target-microblaze: Allow address sizes between 32 and 64 bits 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Edgar E. Iglesias" Allow address sizes between 32 and 64 bits. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/cpu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index d0649fdaaa..8c1f850ab1 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -155,9 +155,8 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp) return; } - if (cpu->cfg.addr_size != 32) { - error_setg(errp, "addr-size %d is out of range. " - "Only 32bit is supported.", + if (cpu->cfg.addr_size < 32 || cpu->cfg.addr_size > 64) { + error_setg(errp, "addr-size %d is out of range (32 - 64)", cpu->cfg.addr_size); return; }