diff options
author | xiaoqiang zhao | 2016-05-25 08:39:01 +0200 |
---|---|---|
committer | Paolo Bonzini | 2016-05-29 09:11:10 +0200 |
commit | 8290de92b83e843390571b36dc9e09a9fb75abf0 (patch) | |
tree | e25fba7797263e26826fe084b3b414ba0abd9c75 /hw/cris | |
parent | hw/char: QOM'ify escc.c (diff) | |
download | qemu-8290de92b83e843390571b36dc9e09a9fb75abf0.tar.gz qemu-8290de92b83e843390571b36dc9e09a9fb75abf0.tar.xz qemu-8290de92b83e843390571b36dc9e09a9fb75abf0.zip |
hw/char: QOM'ify etraxfs_ser.c
* Drop the old SysBus init function and use instance_init
* Call qemu_chr_add_handlers in the realize callback
* Use qdev chardev prop instead of qemu_char_get_next_serial
* Add etraxfs_ser_create function to create etraxfs serial device
Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Message-Id: <1464158344-12266-3-git-send-email-zxq_yx_007@163.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/cris')
-rw-r--r-- | hw/cris/axis_dev88.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/cris/axis_dev88.c b/hw/cris/axis_dev88.c index 9f58658741..60df8877c1 100644 --- a/hw/cris/axis_dev88.c +++ b/hw/cris/axis_dev88.c @@ -37,6 +37,7 @@ #include "sysemu/block-backend.h" #include "exec/address-spaces.h" #include "sysemu/qtest.h" +#include "sysemu/sysemu.h" #define D(x) #define DNAND(x) @@ -341,8 +342,7 @@ void axisdev88_init(MachineState *machine) sysbus_create_varargs("etraxfs,timer", 0x3005e000, irq[0x1b], nmi[1], NULL); for (i = 0; i < 4; i++) { - sysbus_create_simple("etraxfs,serial", 0x30026000 + i * 0x2000, - irq[0x14 + i]); + etraxfs_ser_create(0x30026000 + i * 0x2000, irq[0x14 + i], serial_hds[i]); } if (kernel_filename) { |