mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
lasi: update lasi_initfn() to return LASIState
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-33-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
fe744ca3ee
commit
954f6f7564
3 changed files with 6 additions and 4 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "hw/net/lasi_82596.h"
|
||||
#include "hw/nmi.h"
|
||||
#include "hw/pci-host/dino.h"
|
||||
#include "lasi.h"
|
||||
#include "hppa_sys.h"
|
||||
#include "qemu/units.h"
|
||||
#include "qapi/error.h"
|
||||
|
@ -175,7 +176,7 @@ static void machine_hppa_init(MachineState *machine)
|
|||
|
||||
|
||||
/* Init Lasi chip */
|
||||
lasi_dev = lasi_initfn(addr_space);
|
||||
lasi_dev = DEVICE(lasi_initfn(addr_space));
|
||||
memory_region_add_subregion(addr_space, LASI_HPA,
|
||||
sysbus_mmio_get_region(
|
||||
SYS_BUS_DEVICE(lasi_dev), 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue