linux-user: stack_base is now mandatory on all targets
[qemu.git] / hw / lm32.h
1
2 #include "qemu-common.h"
3
4 static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
5 {
6 DeviceState *dev;
7 SysBusDevice *d;
8
9 dev = qdev_create(NULL, "lm32-pic");
10 qdev_init_nofail(dev);
11 d = sysbus_from_qdev(dev);
12 sysbus_connect_irq(d, 0, cpu_irq);
13
14 return dev;
15 }
16
17 static inline DeviceState *lm32_juart_init(void)
18 {
19 DeviceState *dev;
20
21 dev = qdev_create(NULL, "lm32-juart");
22 qdev_init_nofail(dev);
23
24 return dev;
25 }