mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
e7c9136977
commit
8290de92b8
3 changed files with 38 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue