Home
last modified time | relevance | path

Searched refs:CPULoongArchState (Results 1 – 25 of 28) sorted by relevance

12

/qemu/target/loongarch/tcg/
A Dfpu_helper.c29 void restore_fp_status(CPULoongArchState *env) in restore_fp_status()
81 static void update_fcsr0(CPULoongArchState *env, uintptr_t pc) in update_fcsr0()
258 uint64_t helper_fsqrt_s(CPULoongArchState *env, uint64_t fj) in helper_fsqrt_s()
267 uint64_t helper_fsqrt_d(CPULoongArchState *env, uint64_t fj) in helper_fsqrt_d()
276 uint64_t helper_frecip_s(CPULoongArchState *env, uint64_t fj) in helper_frecip_s()
285 uint64_t helper_frecip_d(CPULoongArchState *env, uint64_t fj) in helper_frecip_d()
294 uint64_t helper_frsqrt_s(CPULoongArchState *env, uint64_t fj) in helper_frsqrt_s()
305 uint64_t helper_frsqrt_d(CPULoongArchState *env, uint64_t fj) in helper_frsqrt_d()
315 uint64_t helper_flogb_s(CPULoongArchState *env, uint64_t fj) in helper_flogb_s()
330 uint64_t helper_flogb_d(CPULoongArchState *env, uint64_t fj) in helper_flogb_d()
[all …]
A Diocsr_helper.c18 uint64_t helper_iocsrrd_b(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_b()
24 uint64_t helper_iocsrrd_h(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_h()
30 uint64_t helper_iocsrrd_w(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_w()
36 uint64_t helper_iocsrrd_d(CPULoongArchState *env, target_ulong r_addr) in helper_iocsrrd_d()
42 void helper_iocsrwr_b(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_b()
49 void helper_iocsrwr_h(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_h()
56 void helper_iocsrwr_w(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_w()
63 void helper_iocsrwr_d(CPULoongArchState *env, target_ulong w_addr, in helper_iocsrwr_d()
A Dcsr_helper.c19 target_ulong helper_csrrd_pgd(CPULoongArchState *env) in helper_csrrd_pgd()
38 target_ulong helper_csrrd_cpuid(CPULoongArchState *env) in helper_csrrd_cpuid()
47 target_ulong helper_csrrd_tval(CPULoongArchState *env) in helper_csrrd_tval()
54 target_ulong helper_csrwr_estat(CPULoongArchState *env, target_ulong val) in helper_csrwr_estat()
64 target_ulong helper_csrwr_asid(CPULoongArchState *env, target_ulong val) in helper_csrwr_asid()
76 target_ulong helper_csrwr_tcfg(CPULoongArchState *env, target_ulong val) in helper_csrwr_tcfg()
86 target_ulong helper_csrwr_ticlr(CPULoongArchState *env, target_ulong val) in helper_csrwr_ticlr()
A Dop_helper.c21 void helper_raise_exception(CPULoongArchState *env, uint32_t exception) in helper_raise_exception()
48 void helper_asrtle_d(CPULoongArchState *env, target_ulong rj, target_ulong rk) in helper_asrtle_d()
56 void helper_asrtgt_d(CPULoongArchState *env, target_ulong rj, target_ulong rk) in helper_asrtgt_d()
83 target_ulong helper_cpucfg(CPULoongArchState *env, target_ulong rj) in helper_cpucfg()
88 uint64_t helper_rdtime_d(CPULoongArchState *env) in helper_rdtime_d()
106 void helper_ertn(CPULoongArchState *env) in helper_ertn()
133 void helper_idle(CPULoongArchState *env) in helper_idle()
A Dtranslate.c37 return offsetof(CPULoongArchState, fpr[regno]); in vec_full_offset()
55 offsetof(CPULoongArchState, fpr[regno].vreg.D(index))); in get_vreg64()
61 offsetof(CPULoongArchState, fpr[regno].vreg.D(index))); in set_vreg64()
120 CPULoongArchState *env = cpu_env(cs); in loongarch_tr_init_disas_context()
225 offsetof(CPULoongArchState, fpr[reg_num].vreg.D(0))); in get_fpr()
232 offsetof(CPULoongArchState, fpr[reg_num].vreg.D(0))); in set_fpr()
352 offsetof(CPULoongArchState, gpr[i]), in loongarch_translate_init()
356 cpu_pc = tcg_global_mem_new(tcg_env, offsetof(CPULoongArchState, pc), "pc"); in loongarch_translate_init()
358 offsetof(CPULoongArchState, lladdr), "lladdr"); in loongarch_translate_init()
360 offsetof(CPULoongArchState, llval), "llval"); in loongarch_translate_init()
A Dtlb_helper.c148 static void invalidate_tlb(CPULoongArchState *env, int index) in invalidate_tlb()
163 static void fill_tlb_entry(CPULoongArchState *env, int index) in fill_tlb_entry()
217 void helper_tlbsrch(CPULoongArchState *env) in helper_tlbsrch()
236 void helper_tlbrd(CPULoongArchState *env) in helper_tlbrd()
272 void helper_tlbwr(CPULoongArchState *env) in helper_tlbwr()
287 void helper_tlbfill(CPULoongArchState *env) in helper_tlbfill()
323 void helper_tlbclr(CPULoongArchState *env) in helper_tlbclr()
357 void helper_tlbflush(CPULoongArchState *env) in helper_tlbflush()
381 void helper_invtlb_all(CPULoongArchState *env) in helper_invtlb_all()
448 void helper_invtlb_page_asid_or_g(CPULoongArchState *env, in helper_invtlb_page_asid_or_g()
[all …]
A Dconstant_timer.c36 CPULoongArchState *env = &cpu->env; in cpu_loongarch_store_constant_timer_config()
52 CPULoongArchState *env = &cpu->env; in loongarch_constant_timer_cb()
A Dvec_helper.c2374 static void vec_update_fcsr0_mask(CPULoongArchState *env, in vec_update_fcsr0_mask()
2400 static inline void vec_clear_cause(CPULoongArchState *env) in vec_clear_cause()
2407 CPULoongArchState *env, uint32_t desc) \
2470 CPULoongArchState *env, uint32_t desc) \
2503 CPULoongArchState *env, uint32_t desc) \
2519 static T do_fsqrt_## BIT(CPULoongArchState *env, T fj) \
2667 CPULoongArchState *env, uint32_t desc) in HELPER()
2715 CPULoongArchState *env, uint32_t desc) in HELPER()
2730 CPULoongArchState *env, uint32_t desc) in HELPER()
2929 static T2 do_ffint_ ## NAME(CPULoongArchState *env, T1 fj) \
[all …]
/qemu/target/loongarch/
A Dgdbstub.c16 uint64_t read_fcc(CPULoongArchState *env) in read_fcc()
27 void write_fcc(CPULoongArchState *env, uint64_t val) in write_fcc()
36 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_gdb_read_register()
64 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_gdb_write_register()
90 CPULoongArchState *env = &cpu->env; in loongarch_gdb_get_fpu()
105 CPULoongArchState *env = &cpu->env; in loongarch_gdb_set_fpu()
127 CPULoongArchState *env = &cpu->env; in loongarch_gdb_get_vec()
142 CPULoongArchState *env = &cpu->env; in loongarch_gdb_set_vec()
178 CPULoongArchState *env = &cpu->env; in loongarch_cpu_register_gdb_regs_for_features()
A Dinternals.h23 void G_NORETURN do_raise_exception(CPULoongArchState *env,
31 void restore_fp_status(CPULoongArchState *env);
55 bool loongarch_tlb_search(CPULoongArchState *env, target_ulong vaddr,
57 int get_physical_address(CPULoongArchState *env, hwaddr *physical,
69 uint64_t read_fcc(CPULoongArchState *env);
70 void write_fcc(CPULoongArchState *env, uint64_t val);
A Dcpu_helper.c15 static int loongarch_map_tlb_entry(CPULoongArchState *env, hwaddr *physical, in loongarch_map_tlb_entry()
91 bool loongarch_tlb_search(CPULoongArchState *env, target_ulong vaddr, in loongarch_tlb_search()
144 static int loongarch_map_address(CPULoongArchState *env, hwaddr *physical, in loongarch_map_address()
159 static int loongarch_map_address(CPULoongArchState *env, hwaddr *physical, in loongarch_map_address()
167 static hwaddr dmw_va2pa(CPULoongArchState *env, target_ulong va, in dmw_va2pa()
179 int get_physical_address(CPULoongArchState *env, hwaddr *physical, in get_physical_address()
230 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_get_phys_page_debug()
A Dcpu.c89 void G_NORETURN do_raise_exception(CPULoongArchState *env, in do_raise_exception()
120 CPULoongArchState *env = &cpu->env; in loongarch_cpu_set_irq()
139 static inline bool cpu_loongarch_hw_interrupts_enabled(CPULoongArchState *env) in cpu_loongarch_hw_interrupts_enabled()
166 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_do_interrupt()
310 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_do_transaction_failed()
322 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_exec_interrupt()
369 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_mmu_index()
380 CPULoongArchState *env = &cpu->env; in loongarch_la464_initfn()
478 CPULoongArchState *env = &cpu->env; in loongarch_la132_initfn()
514 CPULoongArchState *env = cpu_env(cs); in loongarch_cpu_reset_hold()
[all …]
A Dcpu.h391 } CPULoongArchState; typedef
402 CPULoongArchState env;
439 static inline bool is_la64(CPULoongArchState *env) in is_la64()
444 static inline bool is_va32(CPULoongArchState *env) in is_va32()
455 static inline void set_pc(CPULoongArchState *env, uint64_t value) in set_pc()
474 static inline void cpu_get_tb_cpu_state(CPULoongArchState *env, vaddr *pc, in cpu_get_tb_cpu_state()
A Darch_dump.c92 CPULoongArchState *env, int cpuid, in loongarch_write_elf64_fprpreg()
118 CPULoongArchState *env = &LOONGARCH_CPU(cs)->env; in loongarch_cpu_write_elf64_note()
/qemu/linux-user/loongarch64/
A Dtarget_cpu.h11 static inline void cpu_clone_regs_child(CPULoongArchState *env, in cpu_clone_regs_child()
20 static inline void cpu_clone_regs_parent(CPULoongArchState *env, in cpu_clone_regs_parent()
25 static inline void cpu_set_tls(CPULoongArchState *env, target_ulong newtls) in cpu_set_tls()
30 static inline abi_ulong get_sp_from_cpustate(CPULoongArchState *state) in get_sp_from_cpustate()
A Dsignal.c126 static abi_ptr setup_extcontext(CPULoongArchState *env, in setup_extcontext()
151 static void setup_sigframe(CPULoongArchState *env, in setup_sigframe()
278 static void restore_sigframe(CPULoongArchState *env, in restore_sigframe()
334 CPULoongArchState *env, in get_sigframe()
351 target_sigset_t *set, CPULoongArchState *env) in setup_rt_frame()
401 long do_rt_sigreturn(CPULoongArchState *env) in do_rt_sigreturn()
A Dcpu_loop.c14 void cpu_loop(CPULoongArchState *env) in cpu_loop()
/qemu/target/loongarch/tcg/insn_trans/
A Dtrans_fmov.c.inc25 tcg_gen_ld8u_tl(cond, tcg_env, offsetof(CPULoongArchState, cf[a->ca]));
97 tcg_gen_st32_i64(Rj, tcg_env, offsetof(CPULoongArchState, fcsr0));
102 tcg_gen_ld_i32(fcsr0, tcg_env, offsetof(CPULoongArchState, fcsr0));
107 tcg_gen_st_i32(fcsr0, tcg_env, offsetof(CPULoongArchState, fcsr0));
130 tcg_gen_ld32u_i64(dest, tcg_env, offsetof(CPULoongArchState, fcsr0));
165 tcg_gen_st8_tl(t0, tcg_env, offsetof(CPULoongArchState, cf[a->cd & 0x7]));
181 offsetof(CPULoongArchState, cf[a->cj & 0x7]));
199 tcg_gen_st8_tl(t0, tcg_env, offsetof(CPULoongArchState, cf[a->cd & 0x7]));
213 offsetof(CPULoongArchState, cf[a->cj & 0x7]));
A Dtrans_fcmp.c.inc46 tcg_gen_st8_tl(var, tcg_env, offsetof(CPULoongArchState, cf[a->cd]));
70 tcg_gen_st8_tl(var, tcg_env, offsetof(CPULoongArchState, cf[a->cd]));
A Dtrans_atomic.c.inc13 tcg_gen_st_tl(t0, tcg_env, offsetof(CPULoongArchState, lladdr));
14 tcg_gen_st_tl(t1, tcg_env, offsetof(CPULoongArchState, llval));
A Dtrans_branch.c.inc70 offsetof(CPULoongArchState, cf[a->cj]));
A Dtrans_extra.c.inc55 tcg_gen_ld_i64(dst2, tcg_env, offsetof(CPULoongArchState, CSR_TID));
A Dtrans_privileged.c.inc63 .offset = offsetof(CPULoongArchState, CSR_##NAME), \
69 .offset = offsetof(CPULoongArchState, CSR_##NAME[N]), \
/qemu/target/loongarch/kvm/
A Dkvm.c39 CPULoongArchState *env = cpu_env(cs); in kvm_get_stealtime()
63 CPULoongArchState *env = cpu_env(cs); in kvm_set_stealtime()
91 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_get_regs_core()
114 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_put_regs_core()
133 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_get_csr()
303 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_put_csr()
479 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_get_regs_fp()
506 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_put_regs_fp()
531 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_put_lbt()
559 CPULoongArchState *env = cpu_env(cs); in kvm_loongarch_get_lbt()
[all …]
/qemu/hw/loongarch/
A Dboot.c222 CPULoongArchState *env = &cpu->env; in reset_load_elf()

Completed in 60 milliseconds

12