This patch set trys to QOM'ify hw/char files, see commit messages for more details
Thanks Paolo <pbonz...@redhat.com> for your suggestions. Note: * CRIS axis_dev88 broad related test is passed and looks ok. * lm32 test cases by Michael <mich...@walle.cc> is passed and looks good. Changes in v5: drop the call of qemu_char_get_next_serial in board code and direct access serial_hds array Changes in v4: * add wrapper functions to create char device * drop the sysbus_create_simple function and use the new qdev_create stuff Changes in v3: * use chardev property instead of qemu_char_get_next_serial * call the functions that touch globals in the realize callback xiaoqiang zhao (4): hw/char: QOM'ify escc.c hw/char: QOM'ify etraxfs_ser.c hw/char: QOM'ify lm32_juart.c hw/char: QOM'ify lm32_uart.c hw/char/escc.c | 30 +++++++++++++++++++----------- hw/char/etraxfs_ser.c | 27 +++++++++++++++++---------- hw/char/lm32_juart.c | 17 ++++++++--------- hw/char/lm32_uart.c | 28 +++++++++++++++++----------- hw/cris/axis_dev88.c | 4 ++-- hw/lm32/lm32.h | 18 ++++++++++++++++++ hw/lm32/lm32_boards.c | 4 ++-- include/hw/cris/etraxfs.h | 16 ++++++++++++++++ 8 files changed, 99 insertions(+), 45 deletions(-) -- 2.1.4