diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2015-07-24 20:42:21 +0200 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-07-28 09:29:25 +0100 |
commit | f6351288b65130deb8102b17143f5d84f817a02a (patch) | |
tree | 15fa614af7c3cc49d1b880ba8e37ab1458e8580a /hw/net | |
parent | da52a4dfcc4864fd2260ec4eab331f75b1f0240b (diff) | |
download | qemu-f6351288b65130deb8102b17143f5d84f817a02a.zip qemu-f6351288b65130deb8102b17143f5d84f817a02a.tar.gz qemu-f6351288b65130deb8102b17143f5d84f817a02a.tar.bz2 |
net/dp8393x: disable user creation
Netcard needs an address space to write data to, which can't be specified
on command line.
This fixes a crash when user starts QEMU with "-device dp8393x"
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/dp8393x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c index 451ff72..93d6a47 100644 --- a/hw/net/dp8393x.c +++ b/hw/net/dp8393x.c @@ -889,6 +889,8 @@ static void dp8393x_class_init(ObjectClass *klass, void *data) dc->reset = dp8393x_reset; dc->vmsd = &vmstate_dp8393x; dc->props = dp8393x_properties; + /* Reason: dma_mr property can't be set */ + dc->cannot_instantiate_with_device_add_yet = true; } static const TypeInfo dp8393x_info = { |