hw/arm: virt uart fix
authorxiaoqiang zhao <zxq_yx_007@163.com>
Wed, 8 Jun 2016 02:30:45 +0000 (10:30 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Jun 2016 18:41:44 +0000 (19:41 +0100)
commit9bbbf6497a10c5066af415d2d187a18679ffb18c
tree41340043357055142667389746f7e37f915dfc68
parentb66e10e4c9ae738412b9742db49457f6b703e349
hw/arm: virt uart fix

commit f0d1d2c115dffc1fbaf954d0b449db05c5eb79b1
("hw/char: QOM'ify pl011 model") break qemu-system-arm virt machine
if option '-machine secure=on' is provided.

The function create_uart is called twice. So make CharDriverState pointer
a parameter to create_uart instead of hardcoded.

Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org>
Message-id: 1465353045-26323-1-git-send-email-zxq_yx_007@163.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c