Home
last modified time | relevance | path

Searched refs:CPUMIPSState (Results 1 – 25 of 33) sorted by relevance

12

/openbmc/qemu/target/mips/tcg/system/
H A Dcp0_helper.c38 CPUMIPSState *env = &c->env; in mips_vpe_is_wfi()
50 CPUMIPSState *env = &c->env; in mips_vp_is_wfi()
81 CPUMIPSState *c = &cpu->env; in mips_tc_wake()
91 CPUMIPSState *c = &cpu->env; in mips_tc_sleep()
113 static CPUMIPSState *mips_cpu_map_tc(CPUMIPSState *env, int *tc) in mips_cpu_map_tc()
155 static void sync_c0_tcstatus(CPUMIPSState *cpu, int tc, in sync_c0_tcstatus()
187 static void sync_c0_entryhi(CPUMIPSState *cpu, int tc) in sync_c0_entryhi()
205 uint32_t cpu_mips_get_random(CPUMIPSState *env) in cpu_mips_get_random()
230 target_ulong helper_mfc0_mvpcontrol(CPUMIPSState *env) in helper_mfc0_mvpcontrol()
235 target_ulong helper_mfc0_mvpconf0(CPUMIPSState *env) in helper_mfc0_mvpconf0()
[all …]
H A Dspecial_helper.c29 target_ulong helper_di(CPUMIPSState *env) in helper_di()
37 target_ulong helper_ei(CPUMIPSState *env) in helper_ei()
45 static void debug_pre_eret(CPUMIPSState *env) in debug_pre_eret()
60 static void debug_post_eret(CPUMIPSState *env) in debug_post_eret()
93 CPUMIPSState *env = cpu_env(cs); in mips_io_recompile_replay_branch()
104 static inline void exception_return(CPUMIPSState *env) in exception_return()
118 void helper_eret(CPUMIPSState *env) in helper_eret()
125 void helper_eretnc(CPUMIPSState *env) in helper_eretnc()
130 void helper_deret(CPUMIPSState *env) in helper_deret()
142 void helper_cache(CPUMIPSState *env, target_ulong addr, uint32_t op) in helper_cache()
H A Dlcsr_helper.c16 uint64_t helper_lcsr_rdcsr(CPUMIPSState *env, target_ulong r_addr) in helper_lcsr_rdcsr()
22 uint64_t helper_lcsr_drdcsr(CPUMIPSState *env, target_ulong r_addr) in helper_lcsr_drdcsr()
28 void helper_lcsr_wrcsr(CPUMIPSState *env, target_ulong w_addr, in helper_lcsr_wrcsr()
35 void helper_lcsr_dwrcsr(CPUMIPSState *env, target_ulong w_addr, in helper_lcsr_dwrcsr()
H A Dsemihosting-stub.c13 void mips_semihosting(CPUMIPSState *env) in mips_semihosting()
H A Dmips-semi.c120 static void report_fault(CPUMIPSState *env) in report_fault()
129 CPUMIPSState *env = cpu_env(cs); in uhi_cb()
170 CPUMIPSState *env = cpu_env(cs); in uhi_fstat_cb()
219 void mips_semihosting(CPUMIPSState *env) in mips_semihosting()
/openbmc/qemu/target/mips/tcg/
H A Dvr54xx_helper.c27 static inline uint64_t get_HILO(CPUMIPSState *env) in get_HILO()
33 static inline target_ulong set_HIT0_LO(CPUMIPSState *env, uint64_t HILO) in set_HIT0_LO()
39 static inline target_ulong set_HI_LOT0(CPUMIPSState *env, uint64_t HILO) in set_HI_LOT0()
47 target_ulong helper_muls(CPUMIPSState *env, target_ulong arg1, in helper_muls()
54 target_ulong helper_mulsu(CPUMIPSState *env, target_ulong arg1, in helper_mulsu()
61 target_ulong helper_macc(CPUMIPSState *env, target_ulong arg1, in helper_macc()
68 target_ulong helper_macchi(CPUMIPSState *env, target_ulong arg1, in helper_macchi()
75 target_ulong helper_maccu(CPUMIPSState *env, target_ulong arg1, in helper_maccu()
82 target_ulong helper_macchiu(CPUMIPSState *env, target_ulong arg1, in helper_macchiu()
89 target_ulong helper_msac(CPUMIPSState *env, target_ulong arg1, in helper_msac()
[all …]
H A Dtcg-internal.h32 G_NORETURN void do_raise_exception_err(CPUMIPSState *env, uint32_t exception,
36 void do_raise_exception(CPUMIPSState *env, in do_raise_exception()
48 void mmu_init(CPUMIPSState *env, const mips_def_t *def);
52 void r4k_invalidate_tlb(CPUMIPSState *env, int idx, int use_extra);
53 uint32_t cpu_mips_get_random(CPUMIPSState *env);
57 hwaddr cpu_mips_translate_address(CPUMIPSState *env, target_ulong address,
64 void cpu_mips_tlb_flush(CPUMIPSState *env);
70 void mips_semihosting(CPUMIPSState *env);
H A Dexception.c28 target_ulong exception_resume_pc(CPUMIPSState *env) in exception_resume_pc()
46 void helper_raise_exception_err(CPUMIPSState *env, uint32_t exception, in helper_raise_exception_err()
52 void helper_raise_exception(CPUMIPSState *env, uint32_t exception) in helper_raise_exception()
57 void helper_raise_exception_debug(CPUMIPSState *env) in helper_raise_exception_debug()
62 static void raise_exception(CPUMIPSState *env, uint32_t exception) in raise_exception()
67 void helper_wait(CPUMIPSState *env) in helper_wait()
82 CPUMIPSState *env = cpu_env(cs); in mips_cpu_synchronize_from_tb()
139 void do_raise_exception_err(CPUMIPSState *env, uint32_t exception, in do_raise_exception_err()
H A Dfpu_helper.c39 target_ulong helper_cfc1(CPUMIPSState *env, uint32_t reg) in helper_cfc1()
87 void helper_ctc1(CPUMIPSState *env, target_ulong arg1, uint32_t fs, uint32_t rt) in helper_ctc1()
202 static inline void update_fcr31(CPUMIPSState *env, uintptr_t pc) in update_fcr31()
233 uint64_t helper_float_sqrt_d(CPUMIPSState *env, uint64_t fdt0) in helper_float_sqrt_d()
240 uint32_t helper_float_sqrt_s(CPUMIPSState *env, uint32_t fst0) in helper_float_sqrt_s()
247 uint64_t helper_float_cvtd_s(CPUMIPSState *env, uint32_t fst0) in helper_float_cvtd_s()
256 uint64_t helper_float_cvtd_w(CPUMIPSState *env, uint32_t wt0) in helper_float_cvtd_w()
265 uint64_t helper_float_cvtd_l(CPUMIPSState *env, uint64_t dt0) in helper_float_cvtd_l()
274 uint64_t helper_float_cvt_l_d(CPUMIPSState *env, uint64_t fdt0) in helper_float_cvt_l_d()
287 uint64_t helper_float_cvt_l_s(CPUMIPSState *env, uint32_t fst0) in helper_float_cvt_l_s()
[all …]
H A Dop_helper.c179 target_ulong helper_yield(CPUMIPSState *env, target_ulong arg) in helper_yield()
210 static inline void check_hwrena(CPUMIPSState *env, int reg, uintptr_t pc) in check_hwrena()
218 target_ulong helper_rdhwr_cpunum(CPUMIPSState *env) in helper_rdhwr_cpunum()
224 target_ulong helper_rdhwr_synci_step(CPUMIPSState *env) in helper_rdhwr_synci_step()
230 target_ulong helper_rdhwr_cc(CPUMIPSState *env) in helper_rdhwr_cc()
240 target_ulong helper_rdhwr_ccres(CPUMIPSState *env) in helper_rdhwr_ccres()
246 target_ulong helper_rdhwr_performance(CPUMIPSState *env) in helper_rdhwr_performance()
252 target_ulong helper_rdhwr_xnp(CPUMIPSState *env) in helper_rdhwr_xnp()
258 void helper_pmon(CPUMIPSState *env, int function) in helper_pmon()
286 target_ulong helper_lcsr_cpucfg(CPUMIPSState *env, target_ulong rs) in helper_lcsr_cpucfg()
[all …]
H A Dldst_helper.c33 target_ulong helper_##name(CPUMIPSState *env, target_ulong arg, int mem_idx) \
55 static inline target_ulong get_lmask(CPUMIPSState *env, in get_lmask()
69 void helper_swl(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_swl()
93 void helper_swr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_swr()
123 void helper_sdl(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_sdl()
167 void helper_sdr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, in helper_sdr()
214 void helper_lwm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, in helper_lwm()
236 void helper_swm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, in helper_swm()
258 void helper_ldm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, in helper_ldm()
280 void helper_sdm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, in helper_sdm()
H A Ddsp_helper.c55 CPUMIPSState *env) in set_DSPControl_overflow_flag()
60 static inline void set_DSPControl_carryflag(bool flag, CPUMIPSState *env) in set_DSPControl_carryflag()
66 static inline uint32_t get_DSPControl_carryflag(CPUMIPSState *env) in get_DSPControl_carryflag()
71 static inline void set_DSPControl_24(uint32_t flag, int len, CPUMIPSState *env) in set_DSPControl_24()
82 static inline void set_DSPControl_pos(uint32_t pos, CPUMIPSState *env) in set_DSPControl_pos()
97 static inline uint32_t get_DSPControl_pos(CPUMIPSState *env) in get_DSPControl_pos()
113 static inline void set_DSPControl_efi(uint32_t flag, CPUMIPSState *env) in set_DSPControl_efi()
121 CPUMIPSState *env) \
136 static inline int16_t mipsdsp_add_i16(int16_t a, int16_t b, CPUMIPSState *env) in mipsdsp_add_i16()
150 CPUMIPSState *env) in mipsdsp_sat_add_i16()
[all …]
H A Dmsa_helper.c99 void helper_msa_nloc_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_b()
122 void helper_msa_nloc_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_h()
137 void helper_msa_nloc_w(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_w()
148 void helper_msa_nloc_d(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_d()
157 void helper_msa_nlzc_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nlzc_b()
180 void helper_msa_nlzc_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nlzc_h()
195 void helper_msa_nlzc_w(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nlzc_w()
206 void helper_msa_nlzc_d(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nlzc_d()
231 void helper_msa_pcnt_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_pcnt_b()
254 void helper_msa_pcnt_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_pcnt_h()
[all …]
/openbmc/qemu/target/mips/
H A Dinternal.h115 int get_physical_address(CPUMIPSState *env, hwaddr *physical,
144 int (*map_address)(CPUMIPSState *env, hwaddr *physical, int *prot,
146 void (*helper_tlbwi)(CPUMIPSState *env);
147 void (*helper_tlbwr)(CPUMIPSState *env);
148 void (*helper_tlbp)(CPUMIPSState *env);
149 void (*helper_tlbr)(CPUMIPSState *env);
150 void (*helper_tlbinv)(CPUMIPSState *env);
151 void (*helper_tlbinvf)(CPUMIPSState *env);
159 void sync_c0_status(CPUMIPSState *env, CPUMIPSState *cpu, int tc);
160 void cpu_mips_store_status(CPUMIPSState *env, target_ulong val);
[all …]
H A Dfpu_helper.h16 static inline void restore_rounding_mode(CPUMIPSState *env) in restore_rounding_mode()
22 static inline void restore_flush_mode(CPUMIPSState *env) in restore_flush_mode()
28 static inline void restore_snan_bit_mode(CPUMIPSState *env) in restore_snan_bit_mode()
60 static inline void restore_fp_status(CPUMIPSState *env) in restore_fp_status()
67 static inline void fp_reset(CPUMIPSState *env) in fp_reset()
104 static inline void restore_msa_fp_status(CPUMIPSState *env) in restore_msa_fp_status()
H A Dcpu.h1194 } CPUMIPSState; typedef
1207 CPUMIPSState env;
1234 void cpu_wrdsp(uint32_t rs, uint32_t mask_num, CPUMIPSState *env);
1235 uint32_t cpu_rddsp(uint32_t mask_num, CPUMIPSState *env);
1254 static inline int mips_env_mmu_index(CPUMIPSState *env) in mips_env_mmu_index()
1316 bool cpu_supports_isa(const CPUMIPSState *env, uint64_t isa_mask);
1320 static inline bool ase_3d_available(const CPUMIPSState *env) in ase_3d_available()
1326 static inline bool ase_msa_available(CPUMIPSState *env) in ase_msa_available()
1332 static inline bool ase_lcsr_available(CPUMIPSState *env) in ase_lcsr_available()
1338 static inline bool ase_mt_available(CPUMIPSState *env) in ase_mt_available()
[all …]
H A Dgdbstub.c28 CPUMIPSState *env = cpu_env(cs); in mips_cpu_gdb_read_register()
80 CPUMIPSState *env = cpu_env(cs); in mips_cpu_gdb_write_register()
H A Dmsa.c26 void msa_reset(CPUMIPSState *env) in msa_reset()
/openbmc/qemu/target/mips/system/
H A Dcp0_timer.c30 static uint32_t cpu_mips_get_count_val(CPUMIPSState *env) in cpu_mips_get_count_val()
38 static void cpu_mips_timer_update(CPUMIPSState *env) in cpu_mips_timer_update()
54 static void cpu_mips_timer_expire(CPUMIPSState *env) in cpu_mips_timer_expire()
63 uint32_t cpu_mips_get_count(CPUMIPSState *env) in cpu_mips_get_count()
81 void cpu_mips_store_count(CPUMIPSState *env, uint32_t count) in cpu_mips_store_count()
99 void cpu_mips_store_compare(CPUMIPSState *env, uint32_t value) in cpu_mips_store_compare()
111 void cpu_mips_start_count(CPUMIPSState *env) in cpu_mips_start_count()
116 void cpu_mips_stop_count(CPUMIPSState *env) in cpu_mips_stop_count()
125 CPUMIPSState *env; in mips_timer_cb()
138 CPUMIPSState *env = &cpu->env; in cpu_mips_clock_init()
H A Dcp0.c27 void sync_c0_status(CPUMIPSState *env, CPUMIPSState *cpu, int tc) in sync_c0_status()
61 void cpu_mips_store_status(CPUMIPSState *env, target_ulong val) in cpu_mips_store_status()
94 void cpu_mips_store_cause(CPUMIPSState *env, target_ulong val) in cpu_mips_store_cause()
H A Dphysaddr.c77 static int get_seg_physical_address(CPUMIPSState *env, hwaddr *physical, in get_seg_physical_address()
101 static int get_segctl_physical_address(CPUMIPSState *env, hwaddr *physical, in get_segctl_physical_address()
115 int get_physical_address(CPUMIPSState *env, hwaddr *physical, in get_physical_address()
233 CPUMIPSState *env = cpu_env(cs); in mips_cpu_get_phys_page_debug()
/openbmc/qemu/linux-user/mips/
H A Dtarget_cpu.h22 static inline void cpu_clone_regs_child(CPUMIPSState *env, target_ulong newsp, in cpu_clone_regs_child()
32 static inline void cpu_clone_regs_parent(CPUMIPSState *env, unsigned flags) in cpu_clone_regs_parent()
36 static inline void cpu_set_tls(CPUMIPSState *env, target_ulong newtls) in cpu_set_tls()
41 static inline abi_ulong get_sp_from_cpustate(CPUMIPSState *state) in get_sp_from_cpustate()
H A Dsignal.c103 static inline void setup_sigcontext(CPUMIPSState *regs, in setup_sigcontext()
140 restore_sigcontext(CPUMIPSState *regs, struct target_sigcontext *sc) in restore_sigcontext()
174 get_sigframe(struct target_sigaction *ka, CPUMIPSState *regs, size_t frame_size) in get_sigframe()
188 static void mips_set_hflags_isa_mode_from_pc(CPUMIPSState *env) in mips_set_hflags_isa_mode_from_pc()
200 target_sigset_t *set, CPUMIPSState *regs) in setup_frame()
245 long do_sigreturn(CPUMIPSState *regs) in do_sigreturn()
294 target_sigset_t *set, CPUMIPSState *env) in setup_rt_frame()
351 long do_rt_sigreturn(CPUMIPSState *env) in do_rt_sigreturn()
/openbmc/qemu/hw/mips/
H A Dmips_int.c32 CPUMIPSState *env = &cpu->env; in cpu_mips_irq_request()
60 CPUMIPSState *env = &cpu->env; in cpu_mips_irq_init_cpu()
71 void cpu_mips_soft_irq(CPUMIPSState *env, int irq, int level) in cpu_mips_soft_irq()
H A Dcps.c58 static bool cpu_mips_itu_supported(CPUMIPSState *env) in cpu_mips_itu_supported()
78 CPUMIPSState *env = &cpu->env; in mips_cps_realize()

12