Home
last modified time | relevance | path

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

12

/openbmc/qemu/target/loongarch/tcg/
H A Dfpu_helper.c29 void restore_fp_status(CPULoongArchState *env) in restore_fp_status()
58 static void update_fcsr0_mask(CPULoongArchState *env, uintptr_t pc, int mask) in update_fcsr0_mask()
81 static void update_fcsr0(CPULoongArchState *env, uintptr_t pc) in update_fcsr0()
86 uint64_t helper_fadd_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fadd_s()
95 uint64_t helper_fadd_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fadd_d()
104 uint64_t helper_fsub_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fsub_s()
113 uint64_t helper_fsub_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fsub_d()
122 uint64_t helper_fmul_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fmul_s()
131 uint64_t helper_fmul_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fmul_d()
140 uint64_t helper_fdiv_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) in helper_fdiv_s()
[all …]
H 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()
H 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()
H 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()
H 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()
H A Dtlb_helper.c21 static void get_dir_base_width(CPULoongArchState *env, uint64_t *dir_base, in get_dir_base_width()
49 static void raise_mmu_exception(CPULoongArchState *env, target_ulong address, in raise_mmu_exception()
116 static void invalidate_tlb_entry(CPULoongArchState *env, int index) in invalidate_tlb_entry()
148 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()
[all …]
H 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()
H A Dvec_helper.c2374 static void vec_update_fcsr0_mask(CPULoongArchState *env, in vec_update_fcsr0_mask()
2395 static void vec_update_fcsr0(CPULoongArchState *env, uintptr_t pc) in vec_update_fcsr0()
2400 static inline void vec_clear_cause(CPULoongArchState *env) in vec_clear_cause()
2407 CPULoongArchState *env, uint32_t desc) \
2441 CPULoongArchState *env, uint32_t desc) \
2470 CPULoongArchState *env, uint32_t desc) \
2484 static T do_flogb_## BIT(CPULoongArchState *env, T fj) \
2503 CPULoongArchState *env, uint32_t desc) \
2519 static T do_fsqrt_## BIT(CPULoongArchState *env, T fj) \
2531 static T do_frecip_## BIT(CPULoongArchState *env, T fj) \
[all …]
/openbmc/qemu/target/loongarch/
H 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()
H 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);
H 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()
H 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()
150 static inline bool cpu_loongarch_hw_interrupts_pending(CPULoongArchState *env) in cpu_loongarch_hw_interrupts_pending()
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()
[all …]
H 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()
H 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()
/openbmc/qemu/linux-user/loongarch64/
H 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()
H 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()
H A Dcpu_loop.c14 void cpu_loop(CPULoongArchState *env) in cpu_loop()
/openbmc/qemu/target/loongarch/tcg/insn_trans/
H 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]));
H 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]));
H 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));
H A Dtrans_branch.c.inc70 offsetof(CPULoongArchState, cf[a->cj]));
H A Dtrans_extra.c.inc55 tcg_gen_ld_i64(dst2, tcg_env, offsetof(CPULoongArchState, CSR_TID));
H A Dtrans_privileged.c.inc63 .offset = offsetof(CPULoongArchState, CSR_##NAME), \
69 .offset = offsetof(CPULoongArchState, CSR_##NAME[N]), \
/openbmc/qemu/target/loongarch/kvm/
H 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 …]
/openbmc/qemu/hw/loongarch/
H A Dboot.c222 CPULoongArchState *env = &cpu->env; in reset_load_elf()

12