YARI bugfix: the shadow of a ld/st hazard wasn't flushedmaster
commit74869cc9818d77f2c141edf4227671168298b084
authorTommy Thorn <tommy-github@thorn.ws>
Wed, 2 Jan 2013 23:38:25 +0000 (2 15:38 -0800)
committerTommy Thorn <tommy-github@thorn.ws>
Wed, 2 Jan 2013 23:38:25 +0000 (2 15:38 -0800)
tree1e403d33193b262f46aaf5ddfade449a018fbed1
parent5a3288d4950f2cf20a5bea62565487fcf8cea43a
YARI bugfix: the shadow of a ld/st hazard wasn't flushed

Loads from IO space (and stores to a busy peripheral) have variable
latency and thus the pipeline must block until the resource is ready.
In YARI this is done by restarting the whole pipeline.  Unfortunately,
the instruction in the EX stage wasn't flushed until a cycle later
which was fatal when that happend to be a any store or an IO load.

Pipelining is trivial in the absense of hazards...
shared/rtl/yari-core/stage_M.v