mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
spapr: Introduce pseries-2.13 machine type
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
99d45f8fbd
commit
8a4fd427fe
2 changed files with 25 additions and 4 deletions
|
@ -3985,18 +3985,37 @@ static const TypeInfo spapr_machine_info = {
|
||||||
type_init(spapr_machine_register_##suffix)
|
type_init(spapr_machine_register_##suffix)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* pseries-2.12
|
* pseries-2.13
|
||||||
*/
|
*/
|
||||||
static void spapr_machine_2_12_instance_options(MachineState *machine)
|
static void spapr_machine_2_13_instance_options(MachineState *machine)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void spapr_machine_2_12_class_options(MachineClass *mc)
|
static void spapr_machine_2_13_class_options(MachineClass *mc)
|
||||||
{
|
{
|
||||||
/* Defaults for the latest behaviour inherited from the base class */
|
/* Defaults for the latest behaviour inherited from the base class */
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_SPAPR_MACHINE(2_12, "2.12", true);
|
DEFINE_SPAPR_MACHINE(2_13, "2.13", true);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* pseries-2.12
|
||||||
|
*/
|
||||||
|
#define SPAPR_COMPAT_2_12 \
|
||||||
|
HW_COMPAT_2_12
|
||||||
|
|
||||||
|
static void spapr_machine_2_12_instance_options(MachineState *machine)
|
||||||
|
{
|
||||||
|
spapr_machine_2_13_instance_options(machine);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void spapr_machine_2_12_class_options(MachineClass *mc)
|
||||||
|
{
|
||||||
|
spapr_machine_2_13_class_options(mc);
|
||||||
|
SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_12);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_SPAPR_MACHINE(2_12, "2.12", false);
|
||||||
|
|
||||||
static void spapr_machine_2_12_sxxm_instance_options(MachineState *machine)
|
static void spapr_machine_2_12_sxxm_instance_options(MachineState *machine)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef HW_COMPAT_H
|
#ifndef HW_COMPAT_H
|
||||||
#define HW_COMPAT_H
|
#define HW_COMPAT_H
|
||||||
|
|
||||||
|
#define HW_COMPAT_2_12
|
||||||
|
|
||||||
#define HW_COMPAT_2_11 \
|
#define HW_COMPAT_2_11 \
|
||||||
{\
|
{\
|
||||||
.driver = "hpet",\
|
.driver = "hpet",\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue