From patchwork Tue May 29 10:50:03 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: 10434977 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 13FB7602BF for ; Tue, 29 May 2018 11:03:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04C4728433 for ; Tue, 29 May 2018 11:03:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDB6F2844C; Tue, 29 May 2018 11:03:14 +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=-3.8 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 7938828433 for ; Tue, 29 May 2018 11:03:14 +0000 (UTC) Received: from localhost ([::1]:60153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcPJ-0003Rr-ME for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 May 2018 07:03:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcDZ-0001oW-At for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcDY-0004GS-JL for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:05 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:39229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcDY-0004G3-DV for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:04 -0400 Received: by mail-wm0-x22c.google.com with SMTP id f8-v6so39343918wmc.4 for ; Tue, 29 May 2018 03:51:04 -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=LwBwLfcHpDJ7rBwThy7deL0DHLaHXyc+u0rR66zJs3o=; b=co7qhY3wSKDL93+VjprYtr7FbTZcC+zW1whyViTmHMF3K3Caj/Ja9aVTwIaDSc2Q48 cEZ7VwVnrB/V/Dwj8cEd+Fz6+8PcaMUF7RqiJfYUZ1qXK3dNKfjuQN157Zj4l4zFazLI fW9QafDMkX9Q7fGg76A8y7F7d6n/maNGuCoqWWxqOf0hFp3v8P+NdcrLhFNFOwIh4o3J 7EJVoAj8xDYsQxDoFi3ED7RGZpPLeWkQS7ghcxIMrmd380O2q+X02khK2gu8eOY1rDKD ESDtCjhqUuY+b3IE6rQkXycZ4lBm5yBBNim0Z+VXtRZ9xfsIW8DNymFQceZO4yuiNg91 HNWw== 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=LwBwLfcHpDJ7rBwThy7deL0DHLaHXyc+u0rR66zJs3o=; b=TBmZL6NqfmI1bZNp2IEQYwgbveHwBBRoCeVPuRShdMHgCvR51iUX0B4r/FNjXg215l CcBiNChB3l/Qbi9eGMQjPGZtzW6jnmHZNEsGr2zYwOUcJSKIpRVKtL1bdpWVq5fmz7Zv Hlm8OCG9B4TDbTSjfcWv5eopiduKjxeESCEb0Zv8IzytYi0wGzIS91enG5oodnQ0y8F5 pFCXDXejne0U/xeB8UuuP10uqriE3PEIySJTxdgZDQ7OjIFlDahF13Xm7RMY9KTqY9gw 6pHYiVa9eQlKZPXvtgJdP4znjUaXujHqa6tM3QVJ8wdsp92cwdmXS12CXvK2plfgdKqW c1Vg== X-Gm-Message-State: ALKqPwdTh7VoagXtvGJvQQii7Tcl5/FCRxCxp6+BPWomwVZ/EF3ds/nY evISy225SQRCNHA3EJ/PF92sVg== X-Google-Smtp-Source: ADUXVKJNZSZuNZQI5YV3c6JnpfttLxAnsbucStdvYtpO5LeyGFutiTmu2VPV8iLrVx+PEXAMag1qFw== X-Received: by 2002:a2e:2286:: with SMTP id i128-v6mr2018623lji.47.1527591063112; Tue, 29 May 2018 03:51: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 i6-v6sm5451677lfc.12.2018.05.29.03.51.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 03:51:02 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 12:50:03 +0200 Message-Id: <20180529105011.1914-31-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180529105011.1914-1-edgar.iglesias@gmail.com> References: <20180529105011.1914-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::22c Subject: [Qemu-devel] [PULL v1 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 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 71fc8d09fe..9b546a2c18 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; }