Lines Matching refs:cpu_data
17 #define __ase(ase) (cpu_data[0].ases & (ase))
18 #define __isa(isa) (cpu_data[0].isa_level & (isa))
19 #define __opt(opt) (cpu_data[0].options & (opt))
232 #define cpu_has_vtag_icache (cpu_data[0].icache.flags & MIPS_CACHE_VTAG)
235 #define cpu_has_dc_aliases (cpu_data[0].dcache.flags & MIPS_CACHE_ALIASES)
238 #define cpu_has_ic_fills_f_dc (cpu_data[0].icache.flags & MIPS_CACHE_IC_F_DC)
241 #define cpu_has_pindexed_dcache (cpu_data[0].dcache.flags & MIPS_CACHE_PINDEX)
257 #define cpu_icache_snoops_remote_store (cpu_data[0].icache.flags & MIPS_IC_SNOOPS_REMOTE)
442 # define cpu_has_64bits (cpu_data[0].isa_level & MIPS_CPU_ISA_64BIT)
445 # define cpu_has_64bit_zero_reg (cpu_data[0].isa_level & MIPS_CPU_ISA_64BIT)
469 # define cpu_vmbits cpu_data[0].vmbits
491 #define cpu_dcache_line_size() cpu_data[0].dcache.linesz
494 #define cpu_icache_line_size() cpu_data[0].icache.linesz
497 #define cpu_scache_line_size() cpu_data[0].scache.linesz
500 #define cpu_tcache_line_size() cpu_data[0].tcache.linesz
649 #define cpu_guest_has_conf1 (cpu_data[0].guest.conf & (1 << 1))
652 #define cpu_guest_has_conf2 (cpu_data[0].guest.conf & (1 << 2))
655 #define cpu_guest_has_conf3 (cpu_data[0].guest.conf & (1 << 3))
658 #define cpu_guest_has_conf4 (cpu_data[0].guest.conf & (1 << 4))
661 #define cpu_guest_has_conf5 (cpu_data[0].guest.conf & (1 << 5))
664 #define cpu_guest_has_conf6 (cpu_data[0].guest.conf & (1 << 6))
667 #define cpu_guest_has_conf7 (cpu_data[0].guest.conf & (1 << 7))
670 #define cpu_guest_has_fpu (cpu_data[0].guest.options & MIPS_CPU_FPU)
673 #define cpu_guest_has_watch (cpu_data[0].guest.options & MIPS_CPU_WATCH)
676 #define cpu_guest_has_contextconfig (cpu_data[0].guest.options & MIPS_CPU_CTXTC)
679 #define cpu_guest_has_segments (cpu_data[0].guest.options & MIPS_CPU_SEGMENTS)
682 #define cpu_guest_has_badinstr (cpu_data[0].guest.options & MIPS_CPU_BADINSTR)
685 #define cpu_guest_has_badinstrp (cpu_data[0].guest.options & MIPS_CPU_BADINSTRP)
688 #define cpu_guest_has_htw (cpu_data[0].guest.options & MIPS_CPU_HTW)
691 #define cpu_guest_has_ldpte (cpu_data[0].guest.options & MIPS_CPU_LDPTE)
694 #define cpu_guest_has_mvh (cpu_data[0].guest.options & MIPS_CPU_MVH)
697 #define cpu_guest_has_msa (cpu_data[0].guest.ases & MIPS_ASE_MSA)
700 #define cpu_guest_has_kscr(n) (cpu_data[0].guest.kscratch_mask & (1u << (n)))
703 #define cpu_guest_has_rw_llb (cpu_has_mips_r6 || (cpu_data[0].guest.options & MIPS_CPU_RW_LLB))
706 #define cpu_guest_has_perf (cpu_data[0].guest.options & MIPS_CPU_PERF)
709 #define cpu_guest_has_maar (cpu_data[0].guest.options & MIPS_CPU_MAAR)
712 #define cpu_guest_has_userlocal (cpu_data[0].guest.options & MIPS_CPU_ULRI)
719 #define cpu_guest_has_dyn_fpu (cpu_data[0].guest.options_dyn & MIPS_CPU_FPU)
722 #define cpu_guest_has_dyn_watch (cpu_data[0].guest.options_dyn & MIPS_CPU_WATCH)
725 #define cpu_guest_has_dyn_contextconfig (cpu_data[0].guest.options_dyn & MIPS_CPU_CTXTC)
728 #define cpu_guest_has_dyn_perf (cpu_data[0].guest.options_dyn & MIPS_CPU_PERF)
731 #define cpu_guest_has_dyn_msa (cpu_data[0].guest.ases_dyn & MIPS_ASE_MSA)
734 #define cpu_guest_has_dyn_maar (cpu_data[0].guest.options_dyn & MIPS_CPU_MAAR)