microblaze: Do not check use_dcache
It is not necessary to check cpuinfo.use_dcache because this checking is done in function which call that functions Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
@@ -100,7 +100,6 @@ void _enable_dcache(void)
|
|||||||
|
|
||||||
void _disable_dcache(void)
|
void _disable_dcache(void)
|
||||||
{
|
{
|
||||||
if (cpuinfo.use_dcache) {
|
|
||||||
#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
|
#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
|
||||||
__asm__ __volatile__ (" \
|
__asm__ __volatile__ (" \
|
||||||
msrclr r0, %0; \
|
msrclr r0, %0; \
|
||||||
@@ -119,12 +118,10 @@ void _disable_dcache(void)
|
|||||||
: "i" (MSR_DCE) \
|
: "i" (MSR_DCE) \
|
||||||
: "memory", "r12");
|
: "memory", "r12");
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _invalidate_dcache(unsigned int addr)
|
void _invalidate_dcache(unsigned int addr)
|
||||||
{
|
{
|
||||||
if (cpuinfo.use_dcache)
|
|
||||||
__asm__ __volatile__ (" \
|
__asm__ __volatile__ (" \
|
||||||
wdc %0, r0" \
|
wdc %0, r0" \
|
||||||
: \
|
: \
|
||||||
|
|||||||
Reference in New Issue
Block a user