summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-04-06 06:59:51 +0530
committerVineet Gupta <vgupta@synopsys.com>2014-05-05 14:22:12 +0530
commitd75386363ee60eb51c933c7b5e536f3a502ad7d7 (patch)
tree1b42879bf082e715204528e4dbb50f13f140a646 /arch
parent9a091d9e8450a4cec76bd208bbbb017a12795416 (diff)
downloadop-kernel-dev-d75386363ee60eb51c933c7b5e536f3a502ad7d7.zip
op-kernel-dev-d75386363ee60eb51c933c7b5e536f3a502ad7d7.tar.gz
ARC: fix mmuv2 warning
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arc/mm/cache_arc700.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/mm/cache_arc700.c b/arch/arc/mm/cache_arc700.c
index 89edf79..23c3832 100644
--- a/arch/arc/mm/cache_arc700.c
+++ b/arch/arc/mm/cache_arc700.c
@@ -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
OpenPOWER on IntegriCloud