Revision c4781a51 hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
252 | 252 |
|
253 | 253 |
/* Fake super-io ports for PREP platform (Intel 82378ZB) */ |
254 | 254 |
typedef struct sysctrl_t { |
255 |
qemu_irq reset_irq; |
|
255 | 256 |
m48t59_t *nvram; |
256 | 257 |
uint8_t state; |
257 | 258 |
uint8_t syscontrol; |
... | ... | |
293 | 294 |
/* Special port 92 */ |
294 | 295 |
/* Check soft reset asked */ |
295 | 296 |
if (val & 0x01) { |
296 |
// cpu_interrupt(first_cpu, PPC_INTERRUPT_RESET); |
|
297 |
qemu_irq_raise(sysctrl->reset_irq); |
|
298 |
} else { |
|
299 |
qemu_irq_lower(sysctrl->reset_irq); |
|
297 | 300 |
} |
298 | 301 |
/* Check LE mode */ |
299 | 302 |
if (val & 0x02) { |
... | ... | |
660 | 663 |
register_ioport_read(0x61, 1, 1, speaker_ioport_read, NULL); |
661 | 664 |
register_ioport_write(0x61, 1, 1, speaker_ioport_write, NULL); |
662 | 665 |
/* Register fake IO ports for PREP */ |
666 |
sysctrl->reset_irq = first_cpu->irq_inputs[PPC6xx_INPUT_HRESET]; |
|
663 | 667 |
register_ioport_read(0x398, 2, 1, &PREP_io_read, sysctrl); |
664 | 668 |
register_ioport_write(0x398, 2, 1, &PREP_io_write, sysctrl); |
665 | 669 |
/* System control ports */ |
Also available in: Unified diff