x86: avoid AREG0 for SMM helpers
[qemu/opensuse.git] / hw / lm32.h
blob0a676329fdcde81bb912d286f00916e143d39cc8
2 #include "qemu-common.h"
4 static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
6 DeviceState *dev;
7 SysBusDevice *d;
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);
14 return dev;
17 static inline DeviceState *lm32_juart_init(void)
19 DeviceState *dev;
21 dev = qdev_create(NULL, "lm32-juart");
22 qdev_init_nofail(dev);
24 return dev;