Commit 98cbd390 authored by Alex Bennée's avatar Alex Bennée Committed by Paolo Bonzini
Browse files

sysregs: add __ACCESS_CP14 macro


Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Message-Id: <20170518160208.9674-2-alex.bennee@linaro.org>
Reviewed-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent bfd500b4
......@@ -42,6 +42,11 @@
#define __ACCESS_CP15_64(Op1, CRm) \
"mrrc", "mcrr", xstr(p15, Op1, %Q0, %R0, CRm), u64
#define __ACCESS_CP14(CRn, Op1, CRm, Op2) \
"mrc", "mcr", xstr(p14, Op1, %0, CRn, CRm, Op2), u32
#define __ACCESS_CP14_64(Op1, CRm) \
"mrrc", "mcrr", xstr(p14, Op1, %Q0, %R0, CRm), u64
#define __read_sysreg(r, w, c, t) ({ \
t __val; \
asm volatile(r " " c : "=r" (__val)); \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment