Lines Matching refs:cpu_data
11 #define cpu_opt(opt) (cpu_data[0].options & (opt))
12 #define cpu_has(feat) (cpu_data[0].options & BIT_ULL(feat))
15 #define cpu_has_loongarch32 (cpu_data[0].isa_level & LOONGARCH_CPU_ISA_32BIT)
16 #define cpu_has_loongarch64 (cpu_data[0].isa_level & LOONGARCH_CPU_ISA_64BIT)
19 # define cpu_has_64bits (cpu_data[0].isa_level & LOONGARCH_CPU_ISA_64BIT)
26 # define cpu_vabits cpu_data[0].vabits
27 # define cpu_pabits cpu_data[0].pabits
65 #define cpu_has_matc_guest (cpu_data[0].guest_cfg & (1 << 0))
66 #define cpu_has_matc_root (cpu_data[0].guest_cfg & (1 << 1))
67 #define cpu_has_matc_nest (cpu_data[0].guest_cfg & (1 << 2))
68 #define cpu_has_sitp (cpu_data[0].guest_cfg & (1 << 6))
69 #define cpu_has_titp (cpu_data[0].guest_cfg & (1 << 8))
70 #define cpu_has_toep (cpu_data[0].guest_cfg & (1 << 10))
71 #define cpu_has_topp (cpu_data[0].guest_cfg & (1 << 12))
72 #define cpu_has_torup (cpu_data[0].guest_cfg & (1 << 14))
73 #define cpu_has_gcip_all (cpu_data[0].guest_cfg & (1 << 16))
74 #define cpu_has_gcip_hit (cpu_data[0].guest_cfg & (1 << 17))
75 #define cpu_has_gcip_secure (cpu_data[0].guest_cfg & (1 << 18))
80 #define cpu_guest_has_conf1 (cpu_data[0].guest.conf & (1 << 1))
81 #define cpu_guest_has_conf2 (cpu_data[0].guest.conf & (1 << 2))
82 #define cpu_guest_has_conf3 (cpu_data[0].guest.conf & (1 << 3))
83 #define cpu_guest_has_fpu (cpu_data[0].guest.options & LOONGARCH_CPU_FPU)
84 #define cpu_guest_has_perf (cpu_data[0].guest.options & LOONGARCH_CPU_PMP)
85 #define cpu_guest_has_watch (cpu_data[0].guest.options & LOONGARCH_CPU_WATCH)
86 #define cpu_guest_has_lsx (cpu_data[0].guest.ases & LOONGARCH_ASE_LSX)
87 #define cpu_guest_has_kscr(n) (cpu_data[0].guest.kscratch_mask & (1u << (n)))
92 #define cpu_guest_has_dyn_fpu (cpu_data[0].guest.options_dyn & LOONGARCH_CPU_FPU)
93 #define cpu_guest_has_dyn_perf (cpu_data[0].guest.options_dyn & LOONGARCH_CPU_PMP)
94 #define cpu_guest_has_dyn_lsx (cpu_data[0].guest.ases_dyn & LOONGARCH_ASE_LSX)