From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: Helge Deller <deller@gmx.de>,
Richard Henderson <richard.henderson@linaro.org>,
Anton Johansson <anjo@rev.ng>
Subject: [PATCH 3/6] target/hppa: Always map 64-bit firmware at 0xfffffff0f0000000
Date: Tue, 17 Mar 2026 20:51:46 +0100 [thread overview]
Message-ID: <20260317195149.8386-4-deller@kernel.org> (raw)
In-Reply-To: <20260317195149.8386-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
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 <deller@gmx.de>
---
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"
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 always
+ * mapped at 0xfffffff0f0000000, independed if the CPU has 40 or 44
+ * physical bits.
*/
addr = (uint32_t)addr;
- addr |= -1ull << (phys_addr_bits - 4);
+ addr |= ((uint64_t) FIRMWARE_HIGH) << 32;
}
return addr;
}
--
2.53.0
next prev parent reply other threads:[~2026-03-17 19:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 19:51 [PATCH 0/6] HPPA fixes for v11 Helge Deller
2026-03-17 19:51 ` [PATCH 1/6] hw/hppa: Fix description of the HP A400-44 server Helge Deller
2026-03-18 17:22 ` Anton Johansson via qemu development
2026-03-17 19:51 ` [PATCH 2/6] hw/hppa: Adjust physical addresses of Astro and Elroy Helge Deller
2026-03-18 17:26 ` Anton Johansson via qemu development
2026-03-17 19:51 ` Helge Deller [this message]
2026-03-18 17:29 ` [PATCH 3/6] target/hppa: Always map 64-bit firmware at 0xfffffff0f0000000 Anton Johansson via qemu development
2026-03-17 19:51 ` [PATCH 4/6] hw/pci-host/astro: Use proper region names Helge Deller
2026-03-18 6:47 ` Philippe Mathieu-Daudé
2026-03-17 19:51 ` [PATCH 5/6] hw/hppa: Fix crash of 64-bit HP-UX 11 while flushing caches Helge Deller
2026-03-18 21:15 ` Anton Johansson via qemu development
[not found] ` <20260317195149.8386-7-deller@kernel.org>
2026-03-18 21:16 ` [PATCH 6/6] target/hppa: Update SeaBIOS-hppa to version 23 Anton Johansson via qemu development
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260317195149.8386-4-deller@kernel.org \
--to=deller@kernel.org \
--cc=anjo@rev.ng \
--cc=deller@gmx.de \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox