]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
CMD_ICCS puts both status and message byte in FIFO, even in PIO mode. Fixes Masoboshi...
authorToni Wilen <twilen@winuae.net>
Wed, 7 Jun 2017 17:42:17 +0000 (20:42 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 7 Jun 2017 17:42:17 +0000 (20:42 +0300)
qemuvga/esp.cpp

index 03109db68b0bbb646a20ba8691b32b08a3dacfd1..3bf3556fc65b97c8b258b2cfa0b3b438fed89b9e 100644 (file)
@@ -292,7 +292,7 @@ static void write_response(ESPState *s)
        // sure wrong buffer is not read.
        s->pio_on = 0;
        s->async_buf = NULL;
-       s->fifo_on = 1;
+       s->fifo_on = 2;
 
        s->ti_buf[0] = s->status;
     s->ti_buf[1] = 0;
@@ -620,7 +620,7 @@ uint64_t esp_reg_read(void *opaque, uint32_t saddr)
                        else
                                v = s->ti_size;
                }
-               if (!s->dma && v > 1)
+               if (!s->dma && v > 1 && s->fifo_on != 2)
                        v = 1;
                return v | (s->rregs[ESP_RSEQ] << 5);
        }