]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hppa: Use 44 bit physical addresses for PA-8700
authorAnton Johansson <anjo@rev.ng>
Thu, 5 Mar 2026 22:54:22 +0000 (23:54 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 8 Mar 2026 22:11:11 +0000 (23:11 +0100)
This is in line with the PA-8700 specification which demands 44 bits.

However, this change breaks the SeaBIOS functional tests as the firmware
assumes 40 bit physical addresses.  Therefore, change the functional
tests to instead run on an A400 which has the expected physical address
space size.

Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-ID: <20260305-hppa-c3600-v6-3-d51526e5269c@rev.ng>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/hppa/cpu.c
tests/functional/hppa/test_seabios.py

index 5895b9d7c098585a66032c3b7fbead41ad30c191..92027d129a7a63fd4ae93e735e7687e3d6235f37 100644 (file)
@@ -349,7 +349,7 @@ static const TypeInfo hppa_cpu_type_infos[] = {
         .name = TYPE_HPPA_CPU_PA_8700,
         .parent = TYPE_HPPA_CPU,
         .class_data = &(const HPPACPUDef) {
-            .phys_addr_bits = 40,
+            .phys_addr_bits = 44,
             .is_pa20 = true,
         },
     },
index 661b2464e1328af84449733ce43bf26d4d1df06e..bdb9d534efe9dd15214e0f25d08d51e07c0b818a 100755 (executable)
@@ -12,7 +12,7 @@ from qemu_test import wait_for_console_pattern
 class HppaSeabios(QemuSystemTest):
 
     timeout = 5
-    MACH_BITS = {'B160L': 32, 'C3700': 64}
+    MACH_BITS = {'B160L': 32, 'A400': 64}
 
     def boot_seabios(self):
         mach = self.machine
@@ -28,7 +28,7 @@ class HppaSeabios(QemuSystemTest):
         self.boot_seabios()
 
     def test_hppa_64(self):
-        self.set_machine('C3700')
+        self.set_machine('A400')
         self.boot_seabios()
 
 if __name__ == '__main__':