Commit 06c7654d authored by Marc Zyngier's avatar Marc Zyngier

arm64: KVM: CPU specific 32bit coprocessor access

Enable handling of CPU specific 32bit coprocessor access. Not much
here either.
Reviewed-by: default avatarChristopher Covington <cov@codeaurora.org>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 62a89c44
...@@ -59,11 +59,21 @@ static const struct sys_reg_desc genericv8_sys_regs[] = { ...@@ -59,11 +59,21 @@ static const struct sys_reg_desc genericv8_sys_regs[] = {
access_actlr, reset_actlr, ACTLR_EL1 }, access_actlr, reset_actlr, ACTLR_EL1 },
}; };
static const struct sys_reg_desc genericv8_cp15_regs[] = {
/* ACTLR */
{ Op1(0b000), CRn(0b0001), CRm(0b0000), Op2(0b001),
access_actlr },
};
static struct kvm_sys_reg_target_table genericv8_target_table = { static struct kvm_sys_reg_target_table genericv8_target_table = {
.table64 = { .table64 = {
.table = genericv8_sys_regs, .table = genericv8_sys_regs,
.num = ARRAY_SIZE(genericv8_sys_regs), .num = ARRAY_SIZE(genericv8_sys_regs),
}, },
.table32 = {
.table = genericv8_cp15_regs,
.num = ARRAY_SIZE(genericv8_cp15_regs),
},
}; };
static int __init sys_reg_genericv8_init(void) static int __init sys_reg_genericv8_init(void)
......
Markdown is supported
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