diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2024-01-12 12:54:02 +0000 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2024-02-13 19:37:28 +0000 |
commit | d294b77a959db73bd51b1f4f25807ecba85eab74 (patch) | |
tree | e56c72ab7adbb39ccb5d39ee04914fe6c7f34ee9 /scripts | |
parent | 0ee71db4fcbb72ec790da235435fa1a13ed61688 (diff) | |
download | qemu-d294b77a959db73bd51b1f4f25807ecba85eab74.zip qemu-d294b77a959db73bd51b1f4f25807ecba85eab74.tar.gz qemu-d294b77a959db73bd51b1f4f25807ecba85eab74.tar.bz2 |
esp.c: ensure that STAT_INT is cleared when reading ESP_RINTR
Both esp_raise_irq() and esp_lower_irq() check the STAT_INT bit in ESP_RSTAT
to ensure that the IRQ is raised or lowered if its state changes. When reading
ESP_RINTR, esp_lower_irq() was being called *after* ESP_RSTAT had been
cleared meaning that STAT_INT was already clear, and so if STAT_INT was
asserted beforehand then the esp_lower_irq() would have no effect.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Helge Deller <deller@gmx.de>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20240112125420.514425-71-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions