OSDN Git Service

ARC: fix mmuv2 warning
authorVineet Gupta <vgupta@synopsys.com>
Sun, 6 Apr 2014 01:29:51 +0000 (06:59 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 5 May 2014 08:52:12 +0000 (14:22 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/cache_arc700.c

index 89edf79..23c3832 100644 (file)
@@ -253,12 +253,16 @@ static inline void __cache_line_loop(unsigned long paddr, unsigned long vaddr,
 
        if (cacheop == OP_INV_IC) {
                aux_cmd = ARC_REG_IC_IVIL;
+#if (CONFIG_ARC_MMU_VER > 2)
                aux_tag = ARC_REG_IC_PTAG;
+#endif
        }
        else {
                /* d$ cmd: INV (discard or wback-n-discard) OR FLUSH (wback) */
                aux_cmd = cacheop & OP_INV ? ARC_REG_DC_IVDL : ARC_REG_DC_FLDL;
+#if (CONFIG_ARC_MMU_VER > 2)
                aux_tag = ARC_REG_DC_PTAG;
+#endif
        }
 
        /* Ensure we properly floor/ceil the non-line aligned/sized requests