1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-17 16:03:03 +00:00
Files
antonblanchard.microwatt/fpga
Benjamin Herrenschmidt bd42580a42 pp_fifo: Fix full fifo losing all data on simultaneous push & pop
The pp_fifo decides whether top = bottom means empty or full based
on whether the previous operation was a push or a pop.

If the fifo performs both in one cycle, it sets the previous op to
pop. That means that a full fifo being added a character and removed
one at the same time becomes empty.

Instead, just leave the previous op alone. If the fifo was empty, it
remains so, if it was full ditto.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2020-05-15 20:49:09 +10:00
..
2020-05-08 21:06:16 +10:00
2019-10-13 14:41:53 +11:00
2019-08-23 16:23:53 +10:00
2019-08-22 16:46:13 +10:00
2019-08-22 16:46:13 +10:00
2019-09-08 07:40:19 +10:00
2019-09-08 07:40:19 +10:00
2020-05-08 21:06:16 +10:00
2020-05-08 21:06:16 +10:00