1
2
3
4
5
6
7
8
9
10#include <linux/kvm_host.h>
11#include <asm/kvm_coproc.h>
12#include <asm/kvm_emulate.h>
13#include <linux/init.h>
14
15#include "coproc.h"
16
17
18
19
20
21
22
23
24
25static const struct coproc_reg a7_regs[] = {
26
27 { CRn( 1), CRm( 0), Op1( 0), Op2( 0), is32,
28 access_vm_reg, reset_val, c1_SCTLR, 0x00C50878 },
29};
30
31static struct kvm_coproc_target_table a7_target_table = {
32 .target = KVM_ARM_TARGET_CORTEX_A7,
33 .table = a7_regs,
34 .num = ARRAY_SIZE(a7_regs),
35};
36
37static int __init coproc_a7_init(void)
38{
39 kvm_register_target_coproc_table(&a7_target_table);
40 return 0;
41}
42late_initcall(coproc_a7_init);
43