From: deller@kernel.org
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: Anton Johansson <anjo@rev.ng>, Helge Deller <deller@gmx.de>
Subject: [PULL 4/4] hw/hppa: Add emulation for the 64-bit A400 server
Date: Thu, 19 Feb 2026 13:44:08 +0100 [thread overview]
Message-ID: <20260219124408.3515-5-deller@kernel.org> (raw)
In-Reply-To: <20260219124408.3515-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
The A400 machine is the very first 64-bit-only machines which uses the 64-bit
PAT firmware and doesn't support 32-bit PDC any longer. Long-term goal is to
support the MPE and HP-UX 11iv3 operating systems, which both require a machine
with PAT firmware.
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Anton Johansson <anjo@rev.ng>
---
hw/hppa/machine.c | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 5ce4a17915..2cf4239a43 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -729,6 +729,14 @@ static void machine_HP_C3700_init(MachineState *machine)
machine_HP_common_init_tail(machine, pci_bus, translate);
}
+/*
+ * Create HP A400 server
+ */
+static void machine_HP_A400_init(MachineState *machine)
+{
+ machine_HP_C3700_init(machine);
+}
+
static void hppa_machine_reset(MachineState *ms, ResetType type)
{
unsigned int smp_cpus = ms->smp.cpus;
@@ -822,6 +830,22 @@ static void HP_C3700_machine_init_class_init(ObjectClass *oc, const void *data)
mc->default_ram_size = 1024 * MiB;
}
+static void HP_A400_machine_init_class_init(ObjectClass *oc, const void *data)
+{
+ static const char * const valid_cpu_types[] = {
+ TYPE_HPPA64_CPU,
+ NULL
+ };
+ MachineClass *mc = MACHINE_CLASS(oc);
+
+ mc->desc = "HP A400-44 workstation";
+ mc->default_cpu_type = TYPE_HPPA64_CPU;
+ mc->valid_cpu_types = valid_cpu_types;
+ mc->init = machine_HP_A400_init;
+ mc->max_cpus = HPPA_MAX_CPUS;
+ mc->default_ram_size = 1024 * MiB;
+}
+
static void HP_715_machine_init_class_init(ObjectClass *oc, const void *data)
{
static const char * const valid_cpu_types[] = {
@@ -860,6 +884,10 @@ static const TypeInfo hppa_machine_types[] = {
.name = MACHINE_TYPE_NAME("C3700"),
.parent = TYPE_HPPA_COMMON_MACHINE,
.class_init = HP_C3700_machine_init_class_init,
+ }, {
+ .name = MACHINE_TYPE_NAME("A400"),
+ .parent = TYPE_HPPA_COMMON_MACHINE,
+ .class_init = HP_A400_machine_init_class_init,
}, {
.name = MACHINE_TYPE_NAME("715"),
.parent = TYPE_HPPA_COMMON_MACHINE,
--
2.53.0
next prev parent reply other threads:[~2026-02-19 12:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-19 12:44 [PULL 0/4] Hppa a400 patches deller
2026-02-19 12:44 ` [PULL 1/4] hw/hppa: Add BMC on 64-bit machines only deller
2026-02-19 12:44 ` [PULL 3/4] hw/hppa: Require SeaBIOS version 22 for A400 machine deller
2026-02-19 12:44 ` deller [this message]
2026-02-23 9:54 ` [PULL 0/4] Hppa a400 patches Peter Maydell
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=20260219124408.3515-5-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.