[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/14] apic: rename apic.id -> apic.index
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 01/14] apic: rename apic.id -> apic.index |
Date: |
Fri, 16 Sep 2011 11:00:21 -0500 |
This clashes with the qdev name property. This shouldn't affect compatibility
since the apic is a no_user device.
Signed-off-by: Anthony Liguori <address@hidden>
---
hw/apic.c | 2 +-
hw/pc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/apic.c b/hw/apic.c
index d8f56c8..e92be49 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -1010,7 +1010,7 @@ static SysBusDeviceInfo apic_info = {
.qdev.reset = apic_reset,
.qdev.no_user = 1,
.qdev.props = (Property[]) {
- DEFINE_PROP_UINT8("id", APICState, id, -1),
+ DEFINE_PROP_UINT8("index", APICState, id, -1),
DEFINE_PROP_PTR("cpu_env", APICState, cpu_env),
DEFINE_PROP_END_OF_LIST(),
}
diff --git a/hw/pc.c b/hw/pc.c
index 5bc845a..f0f7db0 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -876,7 +876,7 @@ static DeviceState *apic_init(void *env, uint8_t apic_id)
static int apic_mapped;
dev = qdev_create(NULL, "apic");
- qdev_prop_set_uint8(dev, "id", apic_id);
+ qdev_prop_set_uint8(dev, "index", apic_id);
qdev_prop_set_ptr(dev, "cpu_env", env);
qdev_init_nofail(dev);
d = sysbus_from_qdev(dev);
--
1.7.4.1
- [Qemu-devel] [PATCH 00/14] qdev: assign unique names to all devices (part 1), Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 05/14] qdev: remove opts pointer tracking, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 01/14] apic: rename apic.id -> apic.index,
Anthony Liguori <=
- [Qemu-devel] [PATCH 13/14] ide: give IDE drives a default name in qdev, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 12/14] pci: give pci devices a default name., Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 09/14] fw_cfg: add name to global fw_cfg device, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 03/14] qdev: push id into qdev_create calls, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 02/14] qdev: enforce that no devices overload the id property, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 08/14] sysbus: make create_varargs take an id, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 14/14] pc: assign names to machine created devices, Anthony Liguori, 2011/09/16
- [Qemu-devel] [PATCH 04/14] qdev: take ownership of id pointer, Anthony Liguori, 2011/09/16