From nobody Wed Oct 29 11:53:21 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 1525340252132437.55795778623076; Thu, 3 May 2018 02:37:32 -0700 (PDT) Received: from localhost ([::1]:54927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAg4-0007Is-CK for importer@patchew.org; Thu, 03 May 2018 05:37:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAPB-00016D-1G for qemu-devel@nongnu.org; Thu, 03 May 2018 05:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEAP9-0005A3-TQ for qemu-devel@nongnu.org; Thu, 03 May 2018 05:20:00 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:43113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEAP9-00059t-LX for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:59 -0400 Received: by mail-lf0-x241.google.com with SMTP id g12-v6so24908615lfb.10 for ; Thu, 03 May 2018 02:19:59 -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 v79-v6sm2706004lfa.60.2018.05.03.02.19.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 02:19:57 -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=19NKWvyCuFarbTbjgS53YfiSwwMX0SHqmjk1NQJmyGs=; b=Pnz037vcFuJglKnf5Ht7Pq54r40nAlzKlQTyWtyTeMDpYcLTB4QN8LEVAo12Brnm2Q jSmIfk91G5n05QxOj9RtzSQAV63kJfGq4+a4pzziCXQAI+m2dEFUVaMLOsieUgsQltE7 7W6N8Ty6q+SKmKh+zWMRBahkmX0oDqHxlBEJErzb6oWgywzpQ9veBkvwOeTTG/FKU16v hL1tLzP/n3n1RRtBtSk57yebJo/vELQtOhFJphuGPOaYB9b+SXME76DuV2Rzcey3Ou0G +UDzVpgjV5LRdOeH1WONTb7/IoF9C7QRZJJnrv7Ot22BeYWJJXf8lg0Us2u+bm2Zq73W +VDg== 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=19NKWvyCuFarbTbjgS53YfiSwwMX0SHqmjk1NQJmyGs=; b=UTJNni0azwqq4oTGHfYos0l7Nw8RBfzvKusaBxesbdJZLQ2rVTAo4f3+vEhBw35rAc vaLebMWB8vV4J6OIvvGYb4Uv0t5/Oazmk6hvFIkBu2+1E5uzYJNc++aJXUJLWmWQPu+R oNbW2nga657+e56dQOW7v4tm9FWvDUDLvArF1WMFAlBMLY1q+T5tFZduBuRFtRAAe0I5 hoaXL1M7Wy3OyLV+Sd7QvuEjj8ePG4xaP96bIYCgZZxaImIJ0mxsJdfNUtsmiS49W0iQ H4tzSzVjLWrO5XLrbTlnx0cBx30st4fa6jGlZeRglHvpDahh848s5WjpuCCCyCqFxqft TQag== X-Gm-Message-State: ALQs6tCnPBJCJjD3WPGep5kebHZXMuifrGffMW8RxgT4aw3hyW7fdFnr UXdJrrfOWnZ0FjroG2+wDjKGJw== X-Google-Smtp-Source: AB8JxZpE6YDWnZF2DU98TFPu3/qZuhv1JJnWe0WTxioyHPbaW6LMoq1vpZOze3t67AKoLqv/q6QNSQ== X-Received: by 2002:a19:d491:: with SMTP id l139-v6mr13507267lfg.130.1525339198152; Thu, 03 May 2018 02:19:58 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 3 May 2018 11:19:14 +0200 Message-Id: <20180503091922.28733-22-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180503091922.28733-1-edgar.iglesias@gmail.com> References: <20180503091922.28733-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::241 Subject: [Qemu-devel] [PATCH v1 21/29] 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, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org 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" Setup MicroBlaze builds for 64bit addressing. No functional change since the translator does not yet emit 64bit addresses. Signed-off-by: Edgar E. Iglesias Reviewed-by: Richard Henderson --- configure | 1 + target/microblaze/cpu.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 1443422e83..6afec716f2 100755 --- a/configure +++ b/configure @@ -6839,6 +6839,7 @@ case "$target_name" in microblaze|microblazeel) TARGET_ARCH=3Dmicroblaze bflt=3D"yes" + echo "TARGET_ABI32=3Dy" >> $config_target_mak ;; mips|mipsel) TARGET_ARCH=3Dmips 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" =20 -#define TARGET_LONG_BITS 32 +#define TARGET_LONG_BITS 64 =20 #define CPUArchState struct CPUMBState =20 @@ -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 =20 -#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 =20 #define CPU_RESOLVING_TYPE TYPE_MICROBLAZE_CPU =20 --=20 2.14.1