hw/ide: restore replay support of IDE
A recent change to weak reset handling broke replay due to the use of aio_bh_schedule_oneshot instead of the replay aware replay_bh_schedule_oneshot_event. Fixes: 55adb3c456 ("ide: cancel pending callbacks on SRST") Suggested-by: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: John Snow <jsnow@redhat.com> Acked-by: John Snow <jsnow@redhat.com> Message-Id: <20201007160038.26953-4-alex.bennee@linaro.org>
This commit is contained in:
parent
42a052333a
commit
de00b8b376
@ -2289,8 +2289,8 @@ void ide_ctrl_write(void *opaque, uint32_t addr, uint32_t val)
|
|||||||
s = &bus->ifs[i];
|
s = &bus->ifs[i];
|
||||||
s->status |= BUSY_STAT;
|
s->status |= BUSY_STAT;
|
||||||
}
|
}
|
||||||
aio_bh_schedule_oneshot(qemu_get_aio_context(),
|
replay_bh_schedule_oneshot_event(qemu_get_aio_context(),
|
||||||
ide_bus_perform_srst, bus);
|
ide_bus_perform_srst, bus);
|
||||||
}
|
}
|
||||||
|
|
||||||
bus->cmd = val;
|
bus->cmd = val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user