Mazamars312 / openfpga-pcengine-cd

The openFPGA PCECD Core
GNU General Public License v2.0
61 stars 6 forks source link

(port from MiSTer-devel) Fix incorrect TIMER interrupt acknowledge condition #6

Closed MP2E closed 1 year ago

MP2E commented 1 year ago

@dshadoff created this fix for MiSTer, original issue text below:

TIMER interrupts are acknowledged by writes to $1403; this code was also acknowledging them when addressing $1402 in a "non-write" state (read, I guess, but possibly others).

Official documentation makes no mention of acknowledgement other than writes to $1403. Removal of the $1402 acknowledgement seems to fix the issue.

Mazamars312 commented 1 year ago

Have added this to the next build. just compiled it and will test it out