0b8fa32f55
Include qemu/module.h where needed, drop it from qemu-common.h
...
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20190523143508.25387-4-armbru@redhat.com >
[Rebased with conflicts resolved automatically, except for
hw/usb/dev-hub.c hw/misc/exynos4210_rng.c hw/misc/bcm2835_rng.c
hw/misc/aspeed_scu.c hw/display/virtio-vga.c hw/arm/stm32f205_soc.c;
ui/cocoa.m fixed up]
2019-06-12 13:18:33 +02:00
04f3c0084d
hw: Remove unused 'hw/devices.h' include
...
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu >
Tested-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2019-03-07 22:16:11 +01:00
03dd024ff5
hw: explicitly include qemu/log.h
...
Move the inclusion out of hw/hw.h, most files do not need it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2016-05-19 16:42:29 +02:00
8ef94f0bc9
arm: Clean up includes
...
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.
This commit was created with scripts/clean-includes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1453832250-766-13-git-send-email-peter.maydell@linaro.org
2016-01-29 15:07:23 +00:00
bd2a88840e
Convert ffs() != 0 callers to ctz32()
...
There are a number of ffs(3) callers that do roughly:
bit = ffs(val);
if (bit) {
do_something(bit - 1);
}
This pattern can be converted to ctz32() like this:
zeroes = ctz32(val);
if (zeroes != 32) {
do_something(zeroes);
}
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
Message-id: 1427124571-28598-6-git-send-email-stefanha@redhat.com
Signed-off-by: Kevin Wolf <kwolf@redhat.com >
2015-04-28 15:36:08 +02:00
654039b42a
hw/intc/allwinner-a10-pic: Add missing 'break'
...
Add missing 'break' after handling of AW_A10_PIC_BASE_ADDR write.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
2014-05-13 16:09:38 +01:00
8f1e884b38
savevm: Remove all the unneeded version_minimum_id_old (arm)
...
After commit 767adce2d
, they are redundant. This way we don't assign them
except when needed. Once there, there were lots of cases where the ".fields"
indentation was wrong:
.fields = (VMStateField []) {
and
.fields = (VMStateField []) {
Change all the combinations to:
.fields = (VMStateField[]){
The biggest problem (apart from aesthetics) was that checkpatch complained
when we copy&pasted the code from one place to another.
Signed-off-by: Juan Quintela <quintela@redhat.com >
[PMM: fixed minor conflict, corrected commit message typos]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-05-13 16:09:35 +01:00
2237094d96
allwinner-a10-pic: fix behaviour of pending register
...
The pending register is read-only and the value returned upon a read
reflects the state of irq input pins (interrupts are level triggered).
This patch implements such behaviour.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com >
Reviewed-by: Li Guang <lig.fnst@cn.fujitsu.com >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: 1395771730-16882-3-git-send-email-b.galvani@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-04-17 21:34:06 +01:00
1c70aa6264
allwinner-a10-pic: set vector address when an interrupt is pending
...
This patch implements proper updating of the vector register which
should hold, according to the A10 user manual, the vector address for
the interrupt currently active on the CPU IRQ input.
Interrupt priority is not implemented at the moment and thus the first
pending interrupt is returned.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Reviewed-by: Li Guang <lig.fnst@cn.fujitsu.com >
Message-id: 1395771730-16882-2-git-send-email-b.galvani@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2014-04-17 21:34:06 +01:00
c3931ee8b4
hw/intc: add allwinner A10 interrupt controller
...
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1387159292-10436-4-git-send-email-lig.fnst@cn.fujitsu.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-12-17 20:12:51 +00:00