dcache: Invalidated dcache before enabling

Change-Id: Ic4756624e077111243c2c1c9b3124a2e9f90c91a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-02-20 11:21:40 +05:30
parent 4f4928b94d
commit a3ee77558d

View file

@ -191,6 +191,7 @@ static void cache_enable(uint32_t cache_bit)
mmu_setup();
reg = get_cr(); /* get control reg. */
cp_delay();
invalidate_dcache_all();
set_cr(reg | cache_bit);
}