[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 49/50] hppa: fold machine_hppa_machine_init() into machine_hppa_m
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 49/50] hppa: fold machine_hppa_machine_init() into machine_hppa_machine_init_class_init() |
Date: |
Thu, 21 Apr 2022 20:30:59 +0100 |
There is no need for a separate function to set the machine class properties
separately from the others.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/hppa/machine.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index dc9950d5d5..3176c7897e 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -446,8 +446,11 @@ static void hppa_nmi(NMIState *n, int cpu_index, Error
**errp)
}
}
-static void machine_hppa_machine_init(MachineClass *mc)
+static void machine_hppa_machine_init_class_init(ObjectClass *oc, void *data)
{
+ MachineClass *mc = MACHINE_CLASS(oc);
+ NMIClass *nc = NMI_CLASS(oc);
+
mc->desc = "HPPA generic machine";
mc->default_cpu_type = TYPE_HPPA_CPU;
mc->init = machine_hppa_init;
@@ -459,14 +462,7 @@ static void machine_hppa_machine_init(MachineClass *mc)
mc->default_ram_size = 512 * MiB;
mc->default_boot_order = "cd";
mc->default_ram_id = "ram";
-}
-static void machine_hppa_machine_init_class_init(ObjectClass *oc, void *data)
-{
- MachineClass *mc = MACHINE_CLASS(oc);
- machine_hppa_machine_init(mc);
-
- NMIClass *nc = NMI_CLASS(oc);
nc->nmi_monitor_handler = hppa_nmi;
}
--
2.20.1
- [PATCH 35/50] lasi: move second serial port initialisation to machine.c, (continued)
- [PATCH 35/50] lasi: move second serial port initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 41/50] hppa: move device headers from hppa_sys.h into individual .c files, Mark Cave-Ayland, 2022/04/21
- [PATCH 37/50] lasi: remove address space parameter from lasi_initfn(), Mark Cave-Ayland, 2022/04/21
- [PATCH 38/50] lasi: move lasi_initfn() to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 40/50] lasi: use numerical constant for iar reset value, Mark Cave-Ayland, 2022/04/21
- [PATCH 42/50] lasi: move from hw/hppa to hw/misc, Mark Cave-Ayland, 2022/04/21
- [PATCH 44/50] hppa: remove hw/hppa/pci.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 45/50] hppa: remove unused trace-events from from hw/hppa, Mark Cave-Ayland, 2022/04/21
- [PATCH 48/50] hppa: use MACHINE QOM macros for defining the hppa machine, Mark Cave-Ayland, 2022/04/21
- [PATCH 46/50] hppa: move enable_lan() define from hppa_sys.h to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 49/50] hppa: fold machine_hppa_machine_init() into machine_hppa_machine_init_class_init(),
Mark Cave-Ayland <=
- [PATCH 43/50] hppa: move hppa_pci_ignore_ops from pci.c to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 47/50] hppa: remove the empty hppa_sys.h file, Mark Cave-Ayland, 2022/04/21
- [PATCH 50/50] hppa: simplify machine function names in machine.c, Mark Cave-Ayland, 2022/04/21
- Re: [PATCH 00/50] hppa: general improvements and tidy-ups, Helge Deller, 2022/04/28