aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/coproc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kvm/coproc.h')
-rw-r--r--arch/arm/kvm/coproc.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/kvm/coproc.h b/arch/arm/kvm/coproc.h
index 0461d5c8d3de..1a44bbe39643 100644
--- a/arch/arm/kvm/coproc.h
+++ b/arch/arm/kvm/coproc.h
@@ -58,8 +58,8 @@ static inline void print_cp_instr(const struct coproc_params *p)
58{ 58{
59 /* Look, we even formatted it for you to paste into the table! */ 59 /* Look, we even formatted it for you to paste into the table! */
60 if (p->is_64bit) { 60 if (p->is_64bit) {
61 kvm_pr_unimpl(" { CRm(%2lu), Op1(%2lu), is64, func_%s },\n", 61 kvm_pr_unimpl(" { CRm64(%2lu), Op1(%2lu), is64, func_%s },\n",
62 p->CRm, p->Op1, p->is_write ? "write" : "read"); 62 p->CRn, p->Op1, p->is_write ? "write" : "read");
63 } else { 63 } else {
64 kvm_pr_unimpl(" { CRn(%2lu), CRm(%2lu), Op1(%2lu), Op2(%2lu), is32," 64 kvm_pr_unimpl(" { CRn(%2lu), CRm(%2lu), Op1(%2lu), Op2(%2lu), is32,"
65 " func_%s },\n", 65 " func_%s },\n",
@@ -135,13 +135,13 @@ static inline int cmp_reg(const struct coproc_reg *i1,
135 return -1; 135 return -1;
136 if (i1->CRn != i2->CRn) 136 if (i1->CRn != i2->CRn)
137 return i1->CRn - i2->CRn; 137 return i1->CRn - i2->CRn;
138 if (i1->is_64 != i2->is_64)
139 return i2->is_64 - i1->is_64;
140 if (i1->CRm != i2->CRm) 138 if (i1->CRm != i2->CRm)
141 return i1->CRm - i2->CRm; 139 return i1->CRm - i2->CRm;
142 if (i1->Op1 != i2->Op1) 140 if (i1->Op1 != i2->Op1)
143 return i1->Op1 - i2->Op1; 141 return i1->Op1 - i2->Op1;
144 return i1->Op2 - i2->Op2; 142 if (i1->Op2 != i2->Op2)
143 return i1->Op2 - i2->Op2;
144 return i2->is_64 - i1->is_64;
145} 145}
146 146
147 147
@@ -153,4 +153,8 @@ static inline int cmp_reg(const struct coproc_reg *i1,
153#define is64 .is_64 = true 153#define is64 .is_64 = true
154#define is32 .is_64 = false 154#define is32 .is_64 = false
155 155
156bool access_sctlr(struct kvm_vcpu *vcpu,
157 const struct coproc_params *p,
158 const struct coproc_reg *r);
159
156#endif /* __ARM_KVM_COPROC_LOCAL_H__ */ 160#endif /* __ARM_KVM_COPROC_LOCAL_H__ */