Fix CD IRQ issue
This commit is contained in:
@@ -19,7 +19,6 @@ namespace JabyEngine {
|
||||
|
||||
((parameter_fifo.write(CD_IO::ParameterFifo{args})),...);
|
||||
cmd_fifo.write(CD_IO::CommandFifo {cmd.id});
|
||||
cmd_interrupt_bit = bit::set(0, cmd.complete_irq);
|
||||
}
|
||||
|
||||
template<typename T, typename...ARGS>
|
||||
@@ -30,7 +29,8 @@ namespace JabyEngine {
|
||||
template<typename...ARGS>
|
||||
static void send_wait(IOPort<CD_IO::CommandFifo>& cmd_fifo, IOPort<CD_IO::ParameterFifo>& parameter_fifo, CD_IO::Command::Desc cmd, ARGS...args) {
|
||||
send(cmd_fifo, parameter_fifo, cmd, args...);
|
||||
wait_completed();
|
||||
cmd_interrupt_bit = bit::set(0, cmd.complete_irq);
|
||||
wait_completed(); // TODO: This was moved because of Duckstation - but is it fine on real hardware?
|
||||
}
|
||||
|
||||
template<typename T, typename...ARGS>
|
||||
|
||||
Reference in New Issue
Block a user