Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6dfb79aa authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <monstr@monstr.eu>
parent fbeda677
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -100,7 +100,6 @@ void _enable_dcache(void)

void _disable_dcache(void)
{
	if (cpuinfo.use_dcache) {
#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
		__asm__ __volatile__ ("					\
				msrclr	r0, %0;				\
@@ -120,11 +119,9 @@ void _disable_dcache(void)
				: "memory", "r12");
#endif
}
}

void _invalidate_dcache(unsigned int addr)
{
	if (cpuinfo.use_dcache)
		__asm__ __volatile__ ("					\
				wdc	%0, r0"				\
				:					\