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))
234 #define cpu_has_vtag_icache (cpu_data[0].icache.flags & MIPS_CACHE_VTAG)
237 #define cpu_has_dc_aliases (cpu_data[0].dcache.flags & MIPS_CACHE_ALIASES)
240 #define cpu_has_ic_fills_f_dc (cpu_data[0].icache.flags & MIPS_CACHE_IC_F_DC)
243 #define cpu_has_pindexed_dcache (cpu_data[0].dcache.flags & MIPS_CACHE_PINDEX)
259 #define cpu_icache_snoops_remote_store (cpu_data[0].icache.flags & MIPS_IC_SNOOPS_REMOTE)
444 # define cpu_has_64bits (cpu_data[0].isa_level & MIPS_CPU_ISA_64BIT)
447 # define cpu_has_64bit_zero_reg (cpu_data[0].isa_level & MIPS_CPU_ISA_64BIT)
471 # define cpu_vmbits cpu_data[0].vmbits
493 #define cpu_dcache_line_size() cpu_data[0].dcache.linesz
496 #define cpu_icache_line_size() cpu_data[0].icache.linesz
499 #define cpu_scache_line_size() cpu_data[0].scache.linesz
502 #define cpu_tcache_line_size() cpu_data[0].tcache.linesz
651 #define cpu_guest_has_conf1 (cpu_data[0].guest.conf & (1 << 1))
654 #define cpu_guest_has_conf2 (cpu_data[0].guest.conf & (1 << 2))
657 #define cpu_guest_has_conf3 (cpu_data[0].guest.conf & (1 << 3))
660 #define cpu_guest_has_conf4 (cpu_data[0].guest.conf & (1 << 4))
663 #define cpu_guest_has_conf5 (cpu_data[0].guest.conf & (1 << 5))
666 #define cpu_guest_has_conf6 (cpu_data[0].guest.conf & (1 << 6))
669 #define cpu_guest_has_conf7 (cpu_data[0].guest.conf & (1 << 7))
672 #define cpu_guest_has_fpu (cpu_data[0].guest.options & MIPS_CPU_FPU)
675 #define cpu_guest_has_watch (cpu_data[0].guest.options & MIPS_CPU_WATCH)
678 #define cpu_guest_has_contextconfig (cpu_data[0].guest.options & MIPS_CPU_CTXTC)
681 #define cpu_guest_has_segments (cpu_data[0].guest.options & MIPS_CPU_SEGMENTS)
684 #define cpu_guest_has_badinstr (cpu_data[0].guest.options & MIPS_CPU_BADINSTR)
687 #define cpu_guest_has_badinstrp (cpu_data[0].guest.options & MIPS_CPU_BADINSTRP)
690 #define cpu_guest_has_htw (cpu_data[0].guest.options & MIPS_CPU_HTW)
693 #define cpu_guest_has_ldpte (cpu_data[0].guest.options & MIPS_CPU_LDPTE)
696 #define cpu_guest_has_mvh (cpu_data[0].guest.options & MIPS_CPU_MVH)
699 #define cpu_guest_has_msa (cpu_data[0].guest.ases & MIPS_ASE_MSA)
702 #define cpu_guest_has_kscr(n) (cpu_data[0].guest.kscratch_mask & (1u << (n)))
705 #define cpu_guest_has_rw_llb (cpu_has_mips_r6 || (cpu_data[0].guest.options & MIPS_CPU_RW_LLB))
708 #define cpu_guest_has_perf (cpu_data[0].guest.options & MIPS_CPU_PERF)
711 #define cpu_guest_has_maar (cpu_data[0].guest.options & MIPS_CPU_MAAR)
714 #define cpu_guest_has_userlocal (cpu_data[0].guest.options & MIPS_CPU_ULRI)
721 #define cpu_guest_has_dyn_fpu (cpu_data[0].guest.options_dyn & MIPS_CPU_FPU)
724 #define cpu_guest_has_dyn_watch (cpu_data[0].guest.options_dyn & MIPS_CPU_WATCH)
727 #define cpu_guest_has_dyn_contextconfig (cpu_data[0].guest.options_dyn & MIPS_CPU_CTXTC)
730 #define cpu_guest_has_dyn_perf (cpu_data[0].guest.options_dyn & MIPS_CPU_PERF)
733 #define cpu_guest_has_dyn_msa (cpu_data[0].guest.ases_dyn & MIPS_ASE_MSA)
736 #define cpu_guest_has_dyn_maar (cpu_data[0].guest.options_dyn & MIPS_CPU_MAAR)