aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-04-05 21:29:51 -0400
committerVineet Gupta <vgupta@synopsys.com>2014-05-05 04:52:12 -0400
commitd75386363ee60eb51c933c7b5e536f3a502ad7d7 (patch)
tree1b42879bf082e715204528e4dbb50f13f140a646
parent9a091d9e8450a4cec76bd208bbbb017a12795416 (diff)
ARC: fix mmuv2 warning
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-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 89edf7961a2f..23c3832e6d9f 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,
253 253
254 if (cacheop == OP_INV_IC) { 254 if (cacheop == OP_INV_IC) {
255 aux_cmd = ARC_REG_IC_IVIL; 255 aux_cmd = ARC_REG_IC_IVIL;
256#if (CONFIG_ARC_MMU_VER > 2)
256 aux_tag = ARC_REG_IC_PTAG; 257 aux_tag = ARC_REG_IC_PTAG;
258#endif
257 } 259 }
258 else { 260 else {
259 /* d$ cmd: INV (discard or wback-n-discard) OR FLUSH (wback) */ 261 /* d$ cmd: INV (discard or wback-n-discard) OR FLUSH (wback) */
260 aux_cmd = cacheop & OP_INV ? ARC_REG_DC_IVDL : ARC_REG_DC_FLDL; 262 aux_cmd = cacheop & OP_INV ? ARC_REG_DC_IVDL : ARC_REG_DC_FLDL;
263#if (CONFIG_ARC_MMU_VER > 2)
261 aux_tag = ARC_REG_DC_PTAG; 264 aux_tag = ARC_REG_DC_PTAG;
265#endif
262 } 266 }
263 267
264 /* Ensure we properly floor/ceil the non-line aligned/sized requests 268 /* Ensure we properly floor/ceil the non-line aligned/sized requests