arm64: add CVADP support to the cache maintenance helper
authorAndrew Murray <andrew.murray@arm.com>
Tue, 9 Apr 2019 09:52:44 +0000 (10:52 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 16 Apr 2019 15:27:58 +0000 (16:27 +0100)
Allow users of dcache_by_line_op to specify cvadp as an op.

Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/assembler.h

index 62121219687133cf019f92eed9d52786e34a75ce..039fbd822ec64025665291187941231b79cc7213 100644 (file)
@@ -407,10 +407,14 @@ alternative_endif
        .ifc    \op, cvap
        sys     3, c7, c12, 1, \kaddr   // dc cvap
        .else
+       .ifc    \op, cvadp
+       sys     3, c7, c13, 1, \kaddr   // dc cvadp
+       .else
        dc      \op, \kaddr
        .endif
        .endif
        .endif
+       .endif
        add     \kaddr, \kaddr, \tmp1
        cmp     \kaddr, \size
        b.lo    9998b