diff options
author | Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> | 2018-04-26 11:04:40 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-04-26 11:04:40 +0100 |
commit | fbf32752663878947de455ff57cb5b9318f14bec (patch) | |
tree | 994fe779b3fc24389bd4ce84c97e85f7bf736101 /hw/ssi | |
parent | 6b892b2f79796989c78d6977e4c906448cda69c0 (diff) | |
download | qemu-fbf32752663878947de455ff57cb5b9318f14bec.zip qemu-fbf32752663878947de455ff57cb5b9318f14bec.tar.gz qemu-fbf32752663878947de455ff57cb5b9318f14bec.tar.bz2 |
xilinx_spips: Correct SNOOP_NONE state when flushing the txfifo
SNOOP_NONE state handle is moved above in the if ladder, as it's same
as SNOOP_STRIPPING during data cycles.
Signed-off-by: Sai Pavan Boddu <saipava@xilinx.com>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Message-id: 1524119244-1240-1-git-send-email-saipava@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ssi')
-rw-r--r-- | hw/ssi/xilinx_spips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index 426f971..03f5fae 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -616,7 +616,8 @@ static void xilinx_spips_flush_txfifo(XilinxSPIPS *s) if (fifo8_is_empty(&s->tx_fifo)) { xilinx_spips_update_ixr(s); return; - } else if (s->snoop_state == SNOOP_STRIPING) { + } else if (s->snoop_state == SNOOP_STRIPING || + s->snoop_state == SNOOP_NONE) { for (i = 0; i < num_effective_busses(s); ++i) { tx_rx[i] = fifo8_pop(&s->tx_fifo); } |