Version
4.0-4169
Branch
new-zelda-hle
Date
9 years, 5 months ago
Windows x64 Mac OS X Android
Commit
75302f48073406c2a682f21ebeb4cc8f7d3e1d0c
Change author
Pierre Bourdon
Change description
DSPHLE MailHandler: Synchronize reads and interrupts

This change is meant to solve the following problem: how to translate the
following snippet to DSPHLE:
    SendInterruptAndWaitRead(MAIL_A);
    SendAndWaitRead(MAIL_B);

    SendInterruptAndWaitRead(MAIL_C);

This should cause the following actions on the CPU side:
    ---> Woken up by interrupt
    Reads MAIL_A
    Reads MAIL_B
    <--- Exits interrupt handler

    ---> Woken up by interrupt
    Reads MAIL_C
    <---

But with the current D