OSDN Git Service

arm64: barrier: Add CSDB macros to control data-value prediction
authorWill Deacon <will.deacon@arm.com>
Mon, 5 Feb 2018 15:34:16 +0000 (15:34 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Feb 2018 22:53:28 +0000 (22:53 +0000)
commit669474e772b952b14f4de4845a1558fd4c0414a4
tree95e11d01c1c6eb07b25fbc271dc90222718a3c8e
parent439e70e27a51fe374806f460848066b237b0c10b
arm64: barrier: Add CSDB macros to control data-value prediction

For CPUs capable of data value prediction, CSDB waits for any outstanding
predictions to architecturally resolve before allowing speculative execution
to continue. Provide macros to expose it to the arch code.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/assembler.h
arch/arm64/include/asm/barrier.h