projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b71c5d4
)
parallel: make optional
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 5 Feb 2011 14:56:53 +0000
(14:56 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 20 Feb 2011 09:31:57 +0000
(09:31 +0000)
Ignore failure with parallel device creation.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pc.h
patch
|
blob
|
history
diff --git
a/hw/pc.h
b/hw/pc.h
index
443ba34
..
f823b7d
100644
(file)
--- a/
hw/pc.h
+++ b/
hw/pc.h
@@
-24,7
+24,10
@@
static inline bool parallel_init(int index, CharDriverState *chr)
{
ISADevice *dev;
- dev = isa_create("isa-parallel");
+ dev = isa_try_create("isa-parallel");
+ if (!dev) {
+ return false;
+ }
qdev_prop_set_uint32(&dev->qdev, "index", index);
qdev_prop_set_chr(&dev->qdev, "chardev", chr);
if (qdev_init(&dev->qdev) < 0) {