From patchwork Wed May 16 18:51:29 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: 10404753 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 CCB1D601D2 for ; Wed, 16 May 2018 19:24:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB9AE28695 for ; Wed, 16 May 2018 19:24:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADDC92869A; Wed, 16 May 2018 19:24:04 +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 1CC2228695 for ; Wed, 16 May 2018 19:24:03 +0000 (UTC) Received: from localhost ([::1]:34833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ21q-0004Ar-VA for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 May 2018 15:24:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1XE-0003JR-DH for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1XD-0000p9-I8 for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:24 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:44227) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1XD-0000ot-Av for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:23 -0400 Received: by mail-wr0-x242.google.com with SMTP id y15-v6so2752350wrg.11 for ; Wed, 16 May 2018 11:52:23 -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=8d09z5Y79g95zbYybpSugwDQatgxESKayLTNoiYflsU=; b=jA550Ak5dDr8LYjn9sifqVbEdfiLNBaR9kVfyWIB9x0/2GtK+JgRVs+gXKfYzGVmfx GGrlfSIfiT985J7G9ZgtFV9UiUxx13GKIZkRJcNCRjN4nJvios0xZMFf1/SQJF2xGWpm F6BF9YZYLC/mZZf2ExfsiLhMZpyyqbDL4oFWjGwHzIg2rLp5m0ABozyxALFL3Jsa38tH OMuPuPT9r0MDgr1B/MQJS/M16eBJU6GFmwJb7ZiRsBJ1HU8UAQuwlK2y159ocgx/mnTp hvp/3sxiWQ1XjzApbMW2NIS8j+miZ1L6jeRSkfSnSJVpA28hDKVRt1yQVGjr3NdCxIJo aqng== 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=8d09z5Y79g95zbYybpSugwDQatgxESKayLTNoiYflsU=; b=Gcb+mBBC3lEMBL0lXyPoTennlDAQ3v0O+Chmul7Nc9+A20ZKUtyY3iL0rBTrdw5Fn3 C8GkFt5Vv24MdV398Sr+n4LA83bkJeNb+iX3vbWqKnnT6cTkXF+yPdhRKpI1kQ8dK0u8 5ZWDo13fHf5tWgWZDim+I8XMrMQdN+ASETcczi8RnNRPblifDzmuCWGrebzFSrro1NSU Qo4aX7fXOqsHgze/xF+ZYhhWLnmPMno3m76nylUfOTYRFXRivbP/qUD1Zcw2N9Ce3Rsn +F1D3PNIFC24KEHKGPoE4Y10XPtIlQWEzK3WR4pbyniRlW+ofg66rTduPnJgJe97hYLh ZIGA== X-Gm-Message-State: ALKqPwcgk3fpJbzD3PZxka04Hp55iac/KTcgzQFJlQp6huetKgXgPxZs j5Y9gwzUi20F74aPwc/Q0sxUlA== X-Google-Smtp-Source: AB8JxZrOx12nl6k7ExCrrGiFQb7QxupmWDKehu5UFD7ZL5iLJoMFJwR/leO8Mp/bwAEfAPeYs/RRIw== X-Received: by 2002:a19:a9d4:: with SMTP id s203-v6mr16459155lfe.37.1526496741950; Wed, 16 May 2018 11:52:21 -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 m81-v6sm776308lfi.1.2018.05.16.11.52.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:52:21 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:29 +0200 Message-Id: <20180516185146.30708-22-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:c0c::242 Subject: [Qemu-devel] [PATCH v3 21/38] target-microblaze: Setup for 64bit addressing 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" Setup MicroBlaze builds for 64bit addressing. No functional change since the translator does not yet emit 64bit addresses. Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- configure | 1 + target/microblaze/cpu.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 59f91ab3f9..5626499e99 100755 --- a/configure +++ b/configure @@ -6844,6 +6844,7 @@ case "$target_name" in microblaze|microblazeel) TARGET_ARCH=microblaze bflt="yes" + echo "TARGET_ABI32=y" >> $config_target_mak ;; mips|mipsel) TARGET_ARCH=mips diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 215f42b384..b631b7dc4c 100644 --- a/target/microblaze/cpu.h +++ b/target/microblaze/cpu.h @@ -23,7 +23,7 @@ #include "qemu-common.h" #include "cpu-qom.h" -#define TARGET_LONG_BITS 32 +#define TARGET_LONG_BITS 64 #define CPUArchState struct CPUMBState @@ -340,8 +340,8 @@ int cpu_mb_signal_handler(int host_signum, void *pinfo, /* FIXME: MB uses variable pages down to 1K but linux only uses 4k. */ #define TARGET_PAGE_BITS 12 -#define TARGET_PHYS_ADDR_SPACE_BITS 32 -#define TARGET_VIRT_ADDR_SPACE_BITS 32 +#define TARGET_PHYS_ADDR_SPACE_BITS 64 +#define TARGET_VIRT_ADDR_SPACE_BITS 64 #define CPU_RESOLVING_TYPE TYPE_MICROBLAZE_CPU