some cleanup:
1. ioapic_common.c: rename 'register_types' to 'ioapic_common_register_types'
2. change 'DEVICE(s)' to dev conversion by introducing local variable
'DeviceState *dev'
---
hw/i386/kvm/ioapic.c|4 +++-
hw/intc/ioapic.c|4 +++-
hw/intc/ioapic_common.c |4 ++--
3
changes includes:
1. use type constant for apic and kvm_apic
2. convert function 'init' to QOM's 'realize' for apic/kvm_apic
3. for consistency, also QOM'ify apic's parent bus 'icc_bus'
---
hw/cpu/icc_bus.c| 14 ++
hw/i386/kvm/apic.c | 10 +++---
hw
do some cleanup, includes:
1. remove DO_UPCAST() for APICCommonState
2. Change DeviceState pointers from 'd' to 'dev', better to understand
3. rename 'register_types' to specifically 'apic_common_register_types'
---
hw/i386/kvm/apic.c|8 +++
hw/intc/apic.c| 42 +++
s since v1:
- separate cleanup patch from the rest
- add & change some code comment
- QOM'ify icc_bus for consistency
xiaoqiang zhao (4):
apic: Cleanup for QOM'ify
apic: QOM'ify apic & icc_bus
ioapic: Cleanup for QOM'ify
ioapic: QOM'ify ioapic
hw/cp
changes:
1. use type constant for kvm_ioapic and ioapic
2. convert 'init' to QOM's 'realize' for ioapic and kvm_ioapic
For QOM'ify, I move variable 'ioapic_no' from static to global.
Then we can drop the 'instance_no' argument. Now, it's child
that increase 'ioapic_no' counter.
---
hw/i386/kvm/ioa
do some cleanup, includes:
1. remove DO_UPCAST() for APICCommonState
2. Change DeviceState pointers from 'd' to 'dev', better to understand
3. rename 'register_types' to specifically 'apic_common_register_types'
---
hw/i386/kvm/apic.c|8 +++
hw/intc/apic.c| 42 +++
changes includes:
1. use type constant for apic and kvm_apic
2. convert function 'init' to QOM's 'realize' for apic/kvm_apic
3. for consistency, also QOM'ify apic's parent bus 'icc_bus'
---
hw/cpu/icc_bus.c| 14 ++
hw/i386/kvm/apic.c | 10 +++---
hw
s since v1:
- separate cleanup patch from the rest
- add & change some code comment
- QOM'ify icc_bus for consistency
xiaoqiang zhao (4):
apic: Cleanup for QOM'ify
apic: QOM'ify apic & icc_bus
ioapic: Cleanup for QOM'ify
ioapic: QOM'ify ioapic
hw/cp
some cleanup:
1. ioapic_common.c: rename 'register_types' to 'ioapic_common_register_types'
2. change 'DEVICE(s)' to dev conversion by introducing local variable
'DeviceState *dev'
---
hw/i386/kvm/ioapic.c|4 +++-
hw/intc/ioapic.c|4 +++-
hw/intc/ioapic_common.c |4 ++--
3
s since v1:
- separate cleanup patch from the rest
- add & change some code comment
- QOM'ify icc_bus for consistency
xiaoqiang zhao (4):
apic: Cleanup for QOM'ify
apic: QOM'ify apic & icc_bus
ioapic: Cleanup for QOM'ify
ioapic: QOM'ify ioapic
hw/cp
do some cleanup, includes:
1. remove DO_UPCAST() for APICCommonState
2. Change DeviceState pointers from 'd' to 'dev', better to understand
3. rename 'register_types' to specifically 'apic_common_register_types'
Signed-off-by: xiaoqiang zhao
---
hw/i3
some cleanup:
1. ioapic_common.c: rename 'register_types' to 'ioapic_common_register_types'
2. change 'DEVICE(s)' to dev conversion by introducing local variable
'DeviceState *dev'
Signed-off-by: xiaoqiang zhao
---
hw/i386/kvm/ioapic.c|4 +++-
changes includes:
1. use type constant for apic and kvm_apic
2. convert function 'init' to QOM's 'realize' for apic/kvm_apic
3. for consistency, also QOM'ify apic's parent bus 'icc_bus'
Signed-off-by: xiaoqiang zhao
---
hw/cpu/icc_bus.c
child
that increase 'ioapic_no' counter.
Signed-off-by: xiaoqiang zhao
---
hw/i386/kvm/ioapic.c | 13 -
hw/intc/ioapic.c | 19 +--
hw/intc/ioapic_common.c | 13 ++---
include/hw/i386/ioapic_internal.h |3 ++
changes:
1. use type constant for kvm_ioapic and ioapic
2. convert 'init' to QOM's 'realize' for ioapic and kvm_ioapic
For QOM'ify, I move variable 'ioapic_no' from static to global.
Then we can drop the 'instance_no' argument. Now, it's child
that increase 'ioapic_no' counter.
---
hw/i386/kvm/ioa
some cleanup:
1. ioapic_common.c: rename 'register_types' to 'ioapic_common_register_types'
2. change 'DEVICE(s)' to dev conversion by introducing local variable
'DeviceState *dev'
Signed-off-by: xiaoqiang zhao
---
hw/i386/kvm/ioapic.c|4 +++-
do some cleanup, includes:
1. remove DO_UPCAST() for APICCommonState
2. Change DeviceState pointers from 'd' to 'dev', better to understand
3. rename 'register_types' to specifically 'apic_common_register_types'
Signed-off-by: xiaoqiang zhao
---
hw/i3
changes includes:
1. use type constant for apic and kvm_apic
2. convert function 'init' to QOM's 'realize' for apic/kvm_apic
3. for consistency, also QOM'ify apic's parent bus 'icc_bus'
Signed-off-by: xiaoqiang zhao
---
hw/cpu/icc_bus.c
child
that increase 'ioapic_no' counter.
Signed-off-by: xiaoqiang zhao
---
hw/i386/kvm/ioapic.c | 15 +--
hw/intc/ioapic.c | 19 +--
hw/intc/ioapic_common.c | 13 ++---
include/hw/i386/ioapic_internal.h |
nce v2:
- fix code style check errors
Changes since v1:
- separate cleanup patch from the rest
- add & change some code comment
- QOM'ify icc_bus for consistency
xiaoqiang zhao (4):
apic: Cleanup for QOM'ify
apic: QOM'ify apic & icc_bus
ioapic: Cleanup fo
assign exynos4210_mct_init to exynos4210_mct_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_mct.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer/exynos4210_mct.c b/hw/timer/exynos4210_mct.c
assign exynos4210_pwm_init to exynos4210_pwm_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_pwm.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer/exynos4210_pwm.c b/hw/timer/exynos4210_pwm.c
assign etraxfs_timer_init to etraxfs_timer_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/etraxfs_timer.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/hw/timer/etraxfs_timer.c b/hw/timer/etraxfs_timer.c
index
* split milkymist_sysctl_init into milkymist_sysctl_info.instance_init and
milkymist_sysctl_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/milkymist-sysctl.c | 19 ---
1 file changed, 12 insertions(+), 7
assign pl031_init to pl031_info.instance_init and drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/pl031.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/hw/timer/pl031.c b/hw/timer/pl031.c
index 34d9b44..b3a2152 100644
--- a/hw/timer
* split m48t59_init1 into m48txx_sysbus_type_info.instance_init and
m48t59_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions(-)
diff
This patch series QOM'ify timmer code under hw/timmer directory.
Main idea is to split the initfn's work, some to TypeInfo.instance_init
and some is placed in DeviceClass::realize.
We drop the use of SysBusDeviceClass::init if possible.
xiaoqiang zhao (14):
hw/timmer: QOM'ify
* assign icp_pit_init to icp_pit_info.instance_init
* split sp804_init into sp804_info.instance_init (sp804_init) and sp804_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/arm_timer.c | 38 +-
1
assign exynos4210_rtc_init to exynos4210_rtc_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_rtc.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer/exynos4210_rtc.c b/hw/timer/exynos4210_rtc.c
* split lm32_timer_init into lm32_timer_info.instance_init and
lm32_timer_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/lm32_timer.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/hw
* split grlib_gptimer_init into grlib_gptimer_info.instance_init and
grlib_gptimer_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/grlib_gptimer.c | 30 ++
1 file changed, 18 insertions(+), 12
assign etraxfs_timer_init to etraxfs_timer_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/etraxfs_timer.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/hw/timer/etraxfs_timer.c b/hw/timer/etraxfs_timer.c
index
* assign icp_pit_init to icp_pit_info.instance_init
* split sp804_init into sp804_info.instance_init (sp804_init) and sp804_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/arm_timer.c | 38 +-
1
This patch series QOM'ify timer code under hw/timer directory.
Main idea is to split the initfn's work, some to TypeInfo.instance_init
and some is placed in DeviceClass::realize.
Drop the use of SysBusDeviceClass::init if possible.
changes since v1:
fix a stupid typo (timmer->time
* split m48t59_init1 into m48txx_sysbus_type_info.instance_init and
m48t59_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions(-)
diff
* split lm32_timer_init into lm32_timer_info.instance_init and
lm32_timer_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/lm32_timer.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/hw
assign exynos4210_pwm_init to exynos4210_pwm_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_pwm.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer/exynos4210_pwm.c b/hw/timer/exynos4210_pwm.c
assign exynos4210_mct_init to exynos4210_mct_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_mct.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer/exynos4210_mct.c b/hw/timer/exynos4210_mct.c
assign exynos4210_rtc_init to exynos4210_rtc_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_rtc.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer/exynos4210_rtc.c b/hw/timer/exynos4210_rtc.c
* split milkymist_sysctl_init into milkymist_sysctl_info.instance_init and
milkymist_sysctl_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/milkymist-sysctl.c | 19 ---
1 file changed, 12 insertions(+), 7
* split grlib_gptimer_init into grlib_gptimer_info.instance_init and
grlib_gptimer_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/grlib_gptimer.c | 30 ++
1 file changed, 18 insertions(+), 12
assign pl031_init to pl031_info.instance_init and drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/pl031.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/hw/timer/pl031.c b/hw/timer/pl031.c
index 34d9b44..b3a2152 100644
--- a/hw/timer
rename slavio_timer_init1 to slavio_timer_init and assign it
to slavio_timer_info.instance_init, then we drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/slavio_timer.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/timer
* split pxa2xx_timer_init into pxa2xx_timer_type_info.instance_init and
pxa2xx_timer_realize
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/pxa2xx_timer.c | 36 +---
1 file changed, 21 insertions(+), 15
assign puv3_ost_init to puv3_ost_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/puv3_ost.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer/puv3_ost.c b/hw/timer/puv3_ost.c
index fa9eefd..0926c06 100644
* assign tusb6010_init to tusb6010_info.instance_init and drop the
SysBusDeviceClass::init
* use spaces instead of tabs
Signed-off-by: xiaoqiang zhao
---
hw/timer/tusb6010.c | 323 ++--
1 file changed, 161 insertions(+), 162 deletions(-)
diff
assign DeviceClass::vmsd instead of using vmstate_register function
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/arm_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c
index 5bd2d75..f1ede5f 100644
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/milkymist-sysctl.c | 21 +
1 file changed, 13
* assign icp_pit_init to icp_pit_info.instance_init
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/arm_timer.c | 40
assign exynos4210_mct_init to exynos4210_mct_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_mct.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer/exynos4210_mct.c
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/grlib_gptimer.c | 30 ++
1 file changed, 18
assign etraxfs_timer_init to etraxfs_timer_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/etraxfs_timer.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hw/timer/etraxfs_timer.c b
assign exynos4210_pwm_init to exynos4210_pwm_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_pwm.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer/exynos4210_pwm.c
assign pl031_init to pl031_info.instance_init and drop the
SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/pl031.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/hw/timer/pl031.c b/hw/timer/pl031.c
index d99d18c
efine some commit message
* use DeviceClass::vmsd instead of vmstate_register to register
the VMState if possible
changes in v2:
fix a stupid typo (timmer->timer)
xiaoqiang zhao (16):
hw/timer: QOM'ify arm_timer (pass 1)
hw/timer: QOM'ify arm_timer (pass 2)
hw/timer: QOM'
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/lm32_timer.c | 19 ---
1 file changed, 12 insertions
assign puv3_ost_init to puv3_ost_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/puv3_ost.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/hw/timer/puv3_ost.c b/hw/timer
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/pxa2xx_timer.c | 36 +---
1 file
rename slavio_timer_init1 to slavio_timer_init and assign
it to slavio_timer_info.instance_init, then we drop the
SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/slavio_timer.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18
assign DeviceClass::vmsd instead of using vmstate_register function
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index 3c683aa..b0cf79d 100644
--- a
assign exynos4210_rtc_init to exynos4210_rtc_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/exynos4210_rtc.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer/exynos4210_rtc.c
assign tusb6010_init to tusb6010_info.instance_init and drop
the SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/tusb6010.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/hw/timer/tusb6010.c b/hw/timer/tusb6010.c
I have sent the v3, which fix this problem.
> 在 2016年2月16日,02:14,Peter Maydell 写道:
>
>> On 27 January 2016 at 02:54, xiaoqiang zhao wrote:
>> * split milkymist_sysctl_init into milkymist_sysctl_info.instance_init and
>> milkymist_sysctl_realize
>
> I think the &
> 在 2016年2月19日,19:37,Peter Maydell 写道:
>
> Mmm, I thought this might be related to the MUSB code.
> I think this device cannot be converted properly to current
> QOM standards until the MUSB code which it relies on has
> been converted first.
Reasonable !
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/lm32_timer.c | 19 ---
1 file changed, 12 insertions
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/grlib_gptimer.c | 30 ++
1 file changed, 18 insertions(+), 12 deletions
!= NULL)
Signed-off-by: xiaoqiang zhao
---
hw/timer/tusb6010.c | 23 ---
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/hw/timer/tusb6010.c b/hw/timer/tusb6010.c
index 9f6af90..2d6bdd3 100644
--- a/hw/timer/tusb6010.c
+++ b/hw/timer/tusb6010.c
@@ -776,21
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/milkymist-sysctl.c | 21 +
1 file changed, 13
assign puv3_ost_init to puv3_ost_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/puv3_ost.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/hw/timer/puv3_ost.c b/hw/timer/puv3_ost.c
index 93650b7..72c87ba
OBJECT cast
* refine some commit message
* use DeviceClass::vmsd instead of vmstate_register to register
the VMState if possible
changes in v2:
fix a stupid typo (timmer->timer)
xiaoqiang zhao (9):
hw/timer: QOM'ify etraxfs_timer
hw/timer: QOM'ify grlib_gptimer
hw/timer: QOM'ify lm
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions
rename slavio_timer_init1 to slavio_timer_init and assign
it to slavio_timer_info.instance_init, then we drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/slavio_timer.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer
assign etraxfs_timer_init to etraxfs_timer_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Edgar E. Iglesias
Signed-off-by: xiaoqiang zhao
---
hw/timer/etraxfs_timer.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hw/timer
assign DeviceClass::vmsd instead of using vmstate_register function
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index 3c683aa..b0cf79d 100644
--- a/hw/timer/m48t59.c
+++ b/hw
>> 在 2016年2月22日,19:03,Peter Maydell 写道:
>>
>>> On 22 February 2016 at 10:28, hitmoon wrote:
>>> 在 2016年02月22日 17:24, Peter Maydell 写道:
>>> Just noticed this won't work as it is -- the vmstate
>>> struct is for the M48t59State*, but the ISA and
>>> Sysbus wrappers have their own structs which ar
>> 在 2016年2月22日,19:03,Peter Maydell 写道:
>>
>>> On 22 February 2016 at 10:28, hitmoon wrote:
>>> 在 2016年02月22日 17:24, Peter Maydell 写道:
>>> Just noticed this won't work as it is -- the vmstate
>>> struct is for the M48t59State*, but the ISA and
>>> Sysbus wrappers have their own structs which ar
assign etraxfs_timer_init to etraxfs_timer_info.instance_init
and drop the SysBusDeviceClass::init
Reviewed-by: Edgar E. Iglesias
Signed-off-by: xiaoqiang zhao
---
hw/timer/etraxfs_timer.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hw/timer
assign DeviceClass::vmsd instead of using vmstate_register function
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 24 ++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index 3c683aa..f5897d8 100644
--- a/hw
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/milkymist-sysctl.c | 21 +
1 file changed, 13
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/grlib_gptimer.c | 32 +++-
1 file changed, 19 insertions(+), 13
rename slavio_timer_init1 to slavio_timer_init and assign
it to slavio_timer_info.instance_init, then we drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/slavio_timer.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Reviewed-by: Peter Maydell
Signed-off-by: xiaoqiang zhao
---
hw/timer/lm32_timer.c | 19 ---
1 file changed, 12 insertions
assign puv3_ost_init to puv3_ost_info.instance_init
and drop the SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/puv3_ost.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/hw/timer/puv3_ost.c b/hw/timer/puv3_ost.c
index 93650b7..72c87ba
register
the VMState if possible
changes in v2:
fix a stupid typo (timmer->timer)
xiaoqiang zhao (8):
hw/timer: QOM'ify etraxfs_timer
hw/timer: QOM'ify lm32_timer
hw/timer: QOM'ify m48txx_sysbus (pass 1)
hw/timer: QOM'ify m48txx_sysbus (pass 2)
hw/ti
In the regions overlap example, region B has a higher priority thus
should has a larger priority number than C.
Signed-off-by: xiaoqiang zhao
---
docs/memory.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/memory.txt b/docs/memory.txt
index 8745f76..d0aca05
Change intc/ioapic kvm/ioapic to use QOM' realizefn.
To achive this, I move variable 'ioapic_no' from static to global.
Then, ioapic_realize and kvm_ioapic_realize can drop the 'instance_no'
argument. Instead of parent, child increase ioapic_no now.
Signed-off-by: xia
From: "xiaoqiang.zhao"
Change apic and kvm/apic to use QOM interface.
Includes:
1. APICCommonState now use QOM realizefn
2. Remove DO_UPCAST() for APICCommonState
3. Use type constant
4. Change DeviceState pointers from 'd' to 'dev', sounds better?
Signed-off-by
use spaces instead of Tabs
Signed-off-by: xiaoqiang zhao
---
hw/usb/tusb6010.c | 318 +++---
1 file changed, 159 insertions(+), 159 deletions(-)
diff --git a/hw/usb/tusb6010.c b/hw/usb/tusb6010.c
index 9f6af90..4daa3a5 100644
--- a/hw/usb
>> 在 2016年3月3日,21:23,Peter Maydell 写道:
>>
>> On 3 March 2016 at 06:19, xiaoqiang zhao wrote:
>> use spaces instead of Tabs
>>
>> Signed-off-by: xiaoqiang zhao
>> ---
>> hw/usb/tusb6010.c | 318
>> +++---
Drop the use of old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/arm/armv7m.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c
index ed7d97f..139247e 100644
--- a/hw/arm/armv7m.c
+++ b/hw/arm
Drop the use of old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/arm/highbank.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index e25cf5e..8f38dff 100644
--- a/hw/arm/highbank.c
+++ b
Drop the use of old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/arm/versatilepb.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/hw/arm/versatilepb.c b/hw/arm/versatilepb.c
index d061f0f..a2411e3 100644
--- a/hw/arm
This patch set trying to QOM'ify code under hw/arm directory.
As previous patches to hw/timer/*, we use instance_init instead of
the SysBus's init function.
xiaoqiang zhao (9):
hw/arm: QOM'ify armv7m.c
hw/arm: QOM'ify highbank.c
hw/arm: QOM'ify integratorcp.c
Remove the empty 'pxa2xx_pic_initfn' and it's
setup code in the 'pxa2xx_pic_class_init'
Signed-off-by: xiaoqiang zhao
---
hw/arm/pxa2xx_pic.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/hw/arm/pxa2xx_pic.c b/hw/arm/pxa2xx_pic.c
index 8a39b1c..9e
Drop the use of old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/arm/pxa2xx.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c
index ff6ac7a..8bdffca 100644
--- a/hw/arm/pxa2xx.c
* Drop the use of old SysBus init function and use instance_init
* Remove the empty 'icp_pic_class_init' from Typeinfo
Signed-off-by: xiaoqiang zhao
---
hw/arm/integratorcp.c | 32
1 file changed, 12 insertions(+), 20 deletions(-)
diff --gi
* Drop the use of old SysBus init function and use instance_init
* Use DeviceClass::vmsd instead of 'vmstate_register' function
Signed-off-by: xiaoqiang zhao
---
hw/arm/stellaris.c | 48
1 file changed, 24 insertions(+), 24 deletion
Drop the use of old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/arm/strongarm.c | 66 +++---
1 file changed, 28 insertions(+), 38 deletions(-)
diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c
index 3b17a21
1 - 100 of 386 matches
Mail list logo