From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 12/25] hw/arm/virt: Add virt-3.1 machine type
Date: Mon, 20 Aug 2018 11:31:59 +0100 [thread overview]
Message-ID: <20180820103212.2810-13-peter.maydell@linaro.org> (raw)
In-Reply-To: <20180820103212.2810-1-peter.maydell@linaro.org>
From: Andrew Jones <drjones@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/virt.c | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 0807be985c0..0b57f87abcb 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1791,10 +1791,7 @@ static void machvirt_machine_init(void)
}
type_init(machvirt_machine_init);
-#define VIRT_COMPAT_2_12 \
- HW_COMPAT_2_12
-
-static void virt_3_0_instance_init(Object *obj)
+static void virt_3_1_instance_init(Object *obj)
{
VirtMachineState *vms = VIRT_MACHINE(obj);
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
@@ -1864,10 +1861,24 @@ static void virt_3_0_instance_init(Object *obj)
vms->irqmap = a15irqmap;
}
-static void virt_machine_3_0_options(MachineClass *mc)
+static void virt_machine_3_1_options(MachineClass *mc)
{
}
-DEFINE_VIRT_MACHINE_AS_LATEST(3, 0)
+DEFINE_VIRT_MACHINE_AS_LATEST(3, 1)
+
+static void virt_3_0_instance_init(Object *obj)
+{
+ virt_3_1_instance_init(obj);
+}
+
+static void virt_machine_3_0_options(MachineClass *mc)
+{
+ virt_machine_3_1_options(mc);
+}
+DEFINE_VIRT_MACHINE(3, 0)
+
+#define VIRT_COMPAT_2_12 \
+ HW_COMPAT_2_12
static void virt_2_12_instance_init(Object *obj)
{
--
2.18.0
next prev parent reply other threads:[~2018-08-20 10:32 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-20 10:31 [Qemu-devel] [PULL 00/25] target-arm queue Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 01/25] target/arm: Fix crash on conditional instruction in an IT block Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 02/25] docs/generic-loader: mention U-Boot and Intel HEX executable formats Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 03/25] hw/intc/arm_gicv3_its: downgrade error_report to warn_report in kvm_arm_its_reset Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 04/25] imx_serial: Generate interrupt on receive data ready if enabled Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 05/25] target/arm: Correct typo in HAMAIR1 regdef name Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 06/25] target/arm: Add missing .cp = 15 to HMAIR1 and HAMAIR1 regdefs Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 07/25] target/arm: Implement AArch32 HVBAR Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 08/25] target/arm: Implement AArch32 Hyp FARs Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 09/25] target/arm: Implement ESR_EL2/HSR for AArch32 and no-EL2 Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 10/25] target/arm: Permit accesses to ELR_Hyp from Hyp mode via MSR/MRS (banked) Peter Maydell
2018-08-20 10:31 ` [Qemu-devel] [PULL 11/25] target/arm: Implement AArch32 ERET instruction Peter Maydell
2018-08-20 10:31 ` Peter Maydell [this message]
2018-08-20 10:32 ` [Qemu-devel] [PULL 13/25] sdhci: add i.MX SD Stable Clock bit Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 14/25] hw/ssi/xilinx_spips: Remove unneeded MMIO request_ptr code Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 15/25] memory: Remove MMIO request_ptr APIs Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 16/25] hw/misc: Remove mmio_interface device Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 17/25] hw/timer/m48t59: Move away from old_mmio accessors Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 18/25] hw/watchdog/cmsdk_apb_watchdog: Implement CMSDK APB watchdog module Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 19/25] nvic: Expose NMI line Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 20/25] hw/dma/pl080: Allow use as embedded-struct device Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 21/25] hw/dma/pl080: Support all three interrupt lines Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 22/25] hw/dma/pl080: Don't use CPU address space for DMA accesses Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 23/25] hw/dma/pl080: Provide device reset function Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 24/25] hw/dma/pl080: Correct bug in register address decode logic Peter Maydell
2018-08-20 10:32 ` [Qemu-devel] [PULL 25/25] hw/dma/pl080: Remove hw_error() if DMA is enabled Peter Maydell
2018-08-20 14:00 ` [Qemu-devel] [PULL 00/25] target-arm queue 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=20180820103212.2810-13-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).