mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target/i386: move FERR handling to target/i386
Move it out of pc.c since it is strictly tied to TCG. This is almost exclusively code movement, the next patch will implement IGNNE. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
038adc2f58
commit
6f529b7534
6 changed files with 36 additions and 19 deletions
17
hw/i386/pc.c
17
hw/i386/pc.c
|
@ -381,23 +381,12 @@ static uint64_t ioport80_read(void *opaque, hwaddr addr, unsigned size)
|
|||
}
|
||||
|
||||
/* MSDOS compatibility mode FPU exception support */
|
||||
static qemu_irq ferr_irq;
|
||||
|
||||
void pc_register_ferr_irq(qemu_irq irq)
|
||||
{
|
||||
ferr_irq = irq;
|
||||
}
|
||||
|
||||
/* XXX: add IGNNE support */
|
||||
void cpu_set_ferr(CPUX86State *s)
|
||||
{
|
||||
qemu_irq_raise(ferr_irq);
|
||||
}
|
||||
|
||||
static void ioportF0_write(void *opaque, hwaddr addr, uint64_t data,
|
||||
unsigned size)
|
||||
{
|
||||
qemu_irq_lower(ferr_irq);
|
||||
if (tcg_enabled()) {
|
||||
cpu_clear_ferr();
|
||||
}
|
||||
}
|
||||
|
||||
static uint64_t ioportF0_read(void *opaque, hwaddr addr, unsigned size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue