4f8a066b5f
blockdev: Remove IF_* check for read-only blockdev_init
...
IF_NONE allows read-only, which makes forbidding it in this place
for other types pretty much pointless.
Instead, make sure that all devices for which the check would have
errored out check in their init function that they don't get a read-only
BlockDriverState. This catches even cases where IF_NONE and -device is
used.
Signed-off-by: Kevin Wolf <kwolf@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
2013-10-11 16:50:01 +02:00
630f444268
pl181: QOM cast cleanup
...
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:07:00 +02:00
1d998d93ac
pl181: Rename pl181_state to PL181State
...
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:07:00 +02:00
8827b0fb66
sd/pl181.c: Avoid undefined shift behaviour in RWORD macro
...
Add a cast to avoid potentially shifting into the sign bit of
a signed value, which is undefined behaviour in C.
(Detected with clang's -fsanitize=undefined.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1372341831-4264-1-git-send-email-peter.maydell@linaro.org
2013-07-15 16:17:30 +01:00
2977673992
hw/s*: pass owner to memory_region_init* functions
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:48 +02:00
2c9b15cab1
memory: add owner argument to initialization functions
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:44 +02:00
6790f59da3
sd: pass bool parameter for sd_init
...
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2013-06-21 22:52:50 +04:00
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