From nobody Mon Apr 6 23:08:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1773777184; cv=none; d=zohomail.com; s=zohoarc; b=PHCj8Qd4lh4+fZxb6NViqV4uh6y/T4r3Myr9gjT/ZjLt7D0l0WNYgOMxpXdoFEGyD67tCDeGOlQM+WMRVeWL/5XykD3O/hDH82Okpr0eG2V9EGj1YHsjg5W6XGQ25F4ZUYF7ZftyA26Kh6M+g/5mPTdgBNBSjvJ89hIexP74FgQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773777184; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/whFZxhjjG6FUf9LwTK1X+b/f2czLHa1qfHJODrCKZQ=; b=oE396m/7N9IuqgWXfugq0aRkU7LZZXihz3L86bT651FenPF80Mbij77XjIeHboJxjiiI5ik9lSjZhHSAfAO3BkDm0skB0FEYB3mnWcrly5Q+292jM/04wuVfKuZgfuJ1A6nKhqu0YWOersRqbpXdlEq92r4SOKP6M2UfG3oiEtY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177377718470040.08595034791426; Tue, 17 Mar 2026 12:53:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w2aSP-00046a-9i; Tue, 17 Mar 2026 15:52:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w2aSN-00046D-RW for qemu-devel@nongnu.org; Tue, 17 Mar 2026 15:52:00 -0400 Received: from tor.source.kernel.org ([172.105.4.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w2aSM-0006Rg-CM for qemu-devel@nongnu.org; Tue, 17 Mar 2026 15:51:59 -0400 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id C03AB6132E; Tue, 17 Mar 2026 19:51:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65736C2BC86; Tue, 17 Mar 2026 19:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773777117; bh=FLrAsBWJ3Lntbh4BRVoONkkoJVDgEccjWA/1sJEobgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tPzpBPl+Qk1KRV/W3MRhz7nqgtpEoEkL5bMFOOmts4v9xC6Hm+lHuruD1eDF+1qsp 0RUz+4XYHb3Kq3mYdrPwdnKXD74arTA4ZzJW0i2ETiU1tpeWgJq6ek1JRPK36so1ku BdP2hnXf5tdivghHU0rxp2PiK05K/YqYFj2d4Od3kDZa5K+zqJNFIwNLatyeTLbTYO GUDQgBLcZmtPMSYAUih4KCGLFiL38igA230Gue9FFyzvFeM+BjCHxFNHBlQIphwc0l fzL/hGF17LkjR7KnMuG6e6s3wZ7hhpb6R72YlLrw17V0au121XzGFNurAtnYsLo0sv oJxPIdIiTCEYg== From: Helge Deller To: qemu-devel@nongnu.org Cc: Helge Deller , Richard Henderson , Anton Johansson Subject: [PATCH 3/6] target/hppa: Always map 64-bit firmware at 0xfffffff0f0000000 Date: Tue, 17 Mar 2026 20:51:46 +0100 Message-ID: <20260317195149.8386-4-deller@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260317195149.8386-1-deller@kernel.org> References: <20260317195149.8386-1-deller@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=172.105.4.254; envelope-from=deller@kernel.org; helo=tor.source.kernel.org X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.819, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.903, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1773777185873158500 Content-Type: text/plain; charset="utf-8" From: Helge Deller I checked on a physical A500, C3700 and C8000 machine and all load their 64-bit PDC (Firmware) at 0xfffffff0f0000000, independed if the CPU uses 40 or 44 physical address bits. For qemu we will do the same and load the 64-bit SeaBIOS-hppa at the same address for our emulated machines. Signed-off-by: Helge Deller Reviewed-by: Anton Johansson --- target/hppa/mem_helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index a4b382069d..ffbad8acfd 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -27,6 +27,7 @@ #include "exec/target_page.h" #include "exec/helper-proto.h" #include "hw/core/cpu.h" +#include "hw/hppa/hppa_hardware.h" #include "trace.h" =20 hwaddr hppa_abs_to_phys_pa1x(uint8_t phys_addr_bits, vaddr addr) @@ -66,12 +67,13 @@ hwaddr hppa_abs_to_phys_pa2_w0(uint8_t phys_addr_bits, = vaddr addr) /* * PDC address space: * Figures H-10 and H-11 of the parisc2.0 spec do not specify - * where to map into the 64-bit PDC address space. - * We map with an offset which equals the 32-bit address, which - * is what can be seen on physical machines too. + * where to map into the 64-bit PDC address space, but verification + * on physical A500, C3700 and C8000 machines show that PDC is alw= ays + * mapped at 0xfffffff0f0000000, independed if the CPU has 40 or 44 + * physical bits. */ addr =3D (uint32_t)addr; - addr |=3D -1ull << (phys_addr_bits - 4); + addr |=3D ((uint64_t) FIRMWARE_HIGH) << 32; } return addr; } --=20 2.53.0