aboutsummaryrefslogtreecommitdiff
path: root/hw/hppa
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-10-01 22:11:45 +0200
committerRichard Henderson <richard.henderson@linaro.org>2018-01-30 10:08:18 -0800
commit813dff13bf2c6bbf3588dfd00de75f6ed07901aa (patch)
tree5123acb4afbbcaab20e47e44dd68fd9d6b3f4b7d /hw/hppa
parent6521130b0a7f699fdb82446d57df5627bfa7ed3c (diff)
downloadqemu-813dff13bf2c6bbf3588dfd00de75f6ed07901aa.zip
qemu-813dff13bf2c6bbf3588dfd00de75f6ed07901aa.tar.gz
qemu-813dff13bf2c6bbf3588dfd00de75f6ed07901aa.tar.bz2
target/hppa: Skeleton support for hppa-softmmu
With the addition of default-configs/hppa-softmmu.mak, this will compile. It is not enabled with this patch, however. Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/hppa')
-rw-r--r--hw/hppa/Makefile.objs1
-rw-r--r--hw/hppa/machine.c38
2 files changed, 39 insertions, 0 deletions
diff --git a/hw/hppa/Makefile.objs b/hw/hppa/Makefile.objs
new file mode 100644
index 0000000..46b2ae1
--- /dev/null
+++ b/hw/hppa/Makefile.objs
@@ -0,0 +1 @@
+obj-y += machine.o
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
new file mode 100644
index 0000000..79958da
--- /dev/null
+++ b/hw/hppa/machine.c
@@ -0,0 +1,38 @@
+/*
+ * QEMU HPPA hardware system emulator.
+ * Copyright 2018 Helge Deller <deller@gmx.de>
+ */
+
+#include "qemu/osdep.h"
+#include "qemu-common.h"
+#include "cpu.h"
+#include "hw/hw.h"
+#include "elf.h"
+#include "hw/loader.h"
+#include "hw/boards.h"
+#include "qemu/error-report.h"
+#include "sysemu/sysemu.h"
+#include "hw/timer/mc146818rtc.h"
+#include "hw/ide.h"
+#include "hw/timer/i8254.h"
+#include "hw/char/serial.h"
+#include "qemu/cutils.h"
+#include "qapi/error.h"
+
+
+static void machine_hppa_init(MachineState *machine)
+{
+}
+
+static void machine_hppa_machine_init(MachineClass *mc)
+{
+ mc->desc = "HPPA generic machine";
+ mc->init = machine_hppa_init;
+ mc->block_default_type = IF_SCSI;
+ mc->max_cpus = 1;
+ mc->is_default = 1;
+ mc->default_ram_size = 512 * M_BYTE;
+ mc->default_boot_order = "cd";
+}
+
+DEFINE_MACHINE("hppa", machine_hppa_machine_init)