Jean-Christophe DUBOIS
95669e6984
i.MX: Improve EPIT timer code.
...
* Unify function and type naming
* use dynamic cast whenever possible
* simplify Debug printf.
* use new style device intialization.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net >
Reviewed-by: Peter Chubb <peter.chubb@nicta.com.au >
Message-id: 1369839656-24466-1-git-send-email-jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:46 +01:00
Jean-Christophe DUBOIS
a50c0d6f72
i.MX: split GPT and EPIT timer implementation
...
There is no common code between these 2 timer implementation.
So it is better to split them.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net >
Message-id: 1368990197-19694-1-git-send-email-jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:45 +01:00
Stefan Weil
6681fca3fc
Remove unnecessary break statements
...
Fix these warnings from cppcheck:
hw/display/cirrus_vga.c:2603:
hw/sd/sd.c:348:
hw/timer/exynos4210_mct.c:1033:
target-arm/translate.c:9886:
target-s390x/mem_helper.c:518:
target-unicore32/translate.c:1936:
style: Consecutive return, break, continue, goto or throw statements are unnecessary.
Signed-off-by: Stefan Weil <sw@weilnetz.de >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2013-06-01 14:25:38 +04:00
Michael Tokarev
997aba8e25
remove some double-includes
...
Some source files #include the same header more than
once for no good reason. Remove second #includes in
such cases.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2013-05-18 16:35:12 +04:00
Jean-Christophe DUBOIS
462566fc5e
i.MX: implement a more correct version of EPIT timer.
...
This patch is providing a complete version of the EPIT timer.
Note, however that the GPT timer in the same file is still not
complete.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net >
Message-id: 1365624982-15647-1-git-send-email-jcd@tribudubois.net
Reviewed-by: Peter Chubb <peter.chubb@nicta.com.au >
[PMM: wrapped an overly long line]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-05-03 18:21:02 +01:00
Igor Mammedov
b8b7456d6a
pc: Update rtc_cmos on CPU hot-plug
...
It provides updated currently available CPUs count to BIOS on reboot.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-05-01 13:04:18 +02:00
Andreas Färber
0e41271ec4
mc146818rtc: QOM'ify
...
Introduce type constant and cast macro to obsolete DO_UPCAST().
Prepares for ISA realizefn.
Signed-off-by: Andreas Färber <afaerber@suse.de >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
Message-id: 1367093935-29091-9-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-29 08:27:48 -05:00
Andreas Färber
a2772c70a9
m48t59: QOM'ify ISA M48T59 NVRAM
...
Introduce type constant and cast macro to obsolete DO_UPCAST() and
container_of().
Prepares for ISA realizefn.
Signed-off-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
Message-id: 1367093935-29091-8-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-29 08:27:48 -05:00
Peter Maydell
bd2be15003
arm: fix location of some include files
...
The recent rearrangement of include files had some minor errors:
devices.h is not ARM specific and should not be in arm/
arm.h should be in arm/
Move these two headers to correct this.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-15 15:16:01 +02:00
Paolo Bonzini
3bd884511f
hw: move timer devices to hw/timer/, configure with default-configs/
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:14 +02:00
Paolo Bonzini
0ddfaf7fe4
hw: move MC146818RTC to hw/timer/, configure via default-configs/
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:13 +02:00
Paolo Bonzini
49ab747f66
hw: move target-independent files to subdirectories
...
This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:12 +02:00
Paolo Bonzini
1fd6bb44ed
hw: make subdirectories for devices
...
Prepare the new directory structure.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:11 +02:00