Introduce addr_to_wb() and wb_to_addr() helpers
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Sep 2021 11:53:52 +0000 (21:53 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Sep 2021 12:04:35 +0000 (22:04 +1000)
commit5cfa65e836138179ca84d369a9711460411aa88e
treed7c1dc22fb2dedb14262de0de279438129721a39
parentd745995207b121e6b53a104c9ddfc8b9840693a2
Introduce addr_to_wb() and wb_to_addr() helpers

These convert addresses to/from wishbone addresses, and use them
in parts of the caches, in order to make the code a bit more readable.

Along the way, rename some functions in the caches to make it a bit
clearer what they operate on and fix a bug in the icache STOP_RELOAD state where
the wb address wasn't properly converted.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
dcache.vhdl
icache.vhdl
wishbone_types.vhdl