Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 215) sorted by relevance

123456789

/illumos-kvm-cmd/target-arm/
H A Dhelper.c660 env->regs[0] = v7m_pop(env); in do_v7m_exception_exit()
661 env->regs[1] = v7m_pop(env); in do_v7m_exception_exit()
662 env->regs[2] = v7m_pop(env); in do_v7m_exception_exit()
663 env->regs[3] = v7m_pop(env); in do_v7m_exception_exit()
664 env->regs[12] = v7m_pop(env); in do_v7m_exception_exit()
665 env->regs[14] = v7m_pop(env); in do_v7m_exception_exit()
742 v7m_push(env, env->regs[3]); in do_interrupt_v7m()
743 v7m_push(env, env->regs[2]); in do_interrupt_v7m()
744 v7m_push(env, env->regs[1]); in do_interrupt_v7m()
745 v7m_push(env, env->regs[0]); in do_interrupt_v7m()
[all …]
H A Dmachine.c7 CPUARMState *env = (CPUARMState *)opaque; in cpu_save() local
10 qemu_put_be32(f, env->regs[i]); in cpu_save()
12 qemu_put_be32(f, cpsr_read(env)); in cpu_save()
13 qemu_put_be32(f, env->spsr); in cpu_save()
23 qemu_put_be32(f, env->cp15.c0_cpuid); in cpu_save()
26 qemu_put_be32(f, env->cp15.c1_sys); in cpu_save()
36 qemu_put_be32(f, env->cp15.c3); in cpu_save()
53 qemu_put_be32(f, env->features); in cpu_save()
58 u.d = env->vfp.regs[i]; in cpu_save()
120 env->spsr = qemu_get_be32(f); in cpu_load()
[all …]
/illumos-kvm-cmd/target-cris/
H A Dhelper.c47 env->pregs[PR_ERP] = env->pc; in do_interrupt()
130 env->pregs[PR_ERP] = env->pc; in do_interruptv10()
137 env->pregs[PR_NRP] = env->pc; in do_interruptv10()
149 env->pregs[PR_ERP] = env->pc; in do_interruptv10()
156 env->regs[R_SP] = env->ksp; in do_interruptv10()
187 env->pregs[PR_ERP] = env->pc; in do_interrupt()
194 env->pregs[PR_NRP] = env->pc; in do_interrupt()
199 env->pregs[PR_ERP] = env->pc; in do_interrupt()
207 env->pregs[PR_ERP] = env->pc; in do_interrupt()
221 env->cc_op, env->cc_mask); in do_interrupt()
[all …]
/illumos-kvm-cmd/hw/
H A Dalpha_palcode.c92 env->ir[0] = 1; in do_swappal()
98 env->pc = env->ipr[IPR_PAL_BASE]; in do_swappal()
205 val = env->ir[16]; in pal_openvms_call()
211 val = env->ir[16]; in pal_openvms_call()
232 val = env->ir[16]; in pal_openvms_call()
238 val = env->ir[16]; in pal_openvms_call()
249 val = env->ir[16]; in pal_openvms_call()
260 val = env->ir[16]; in pal_openvms_call()
764 (env, (env->exception_index - EXCP_CALL_PAL) >> 6); in call_pal()
769 (env, ((env->exception_index - EXCP_CALL_PALP) >> 6) + 0x80); in call_pal()
[all …]
H A Dmips_timer.c38 idx = lfsr % (env->tlb->nb_tlb - env->CP0_Wired) + env->CP0_Wired; in cpu_mips_get_random()
51 wait = env->CP0_Compare - env->CP0_Count - in cpu_mips_timer_update()
64 qemu_irq_raise(env->irq[(env->CP0_IntCtl >> CP0IntCtl_IPTI) & 0x7]); in cpu_mips_timer_expire()
92 env->CP0_Count = in cpu_mips_store_count()
107 qemu_irq_lower(env->irq[(env->CP0_IntCtl >> CP0IntCtl_IPTI) & 0x7]); in cpu_mips_store_compare()
112 cpu_mips_store_count(env, env->CP0_Count); in cpu_mips_start_count()
124 CPUState *env; in mips_timer_cb() local
126 env = opaque; in mips_timer_cb()
137 env->CP0_Count++; in mips_timer_cb()
139 env->CP0_Count--; in mips_timer_cb()
[all …]
/illumos-kvm-cmd/target-microblaze/
H A Dhelper.c37 env->regs[14] = env->sregs[SR_PC]; in do_interrupt()
131 env->regs[17] = env->sregs[SR_PC] + 4; in do_interrupt()
137 env->sregs[SR_BTR] = env->btarget; in do_interrupt()
157 env->regs[17] = env->sregs[SR_PC]; in do_interrupt()
164 env->sregs[SR_BTR] = env->btarget; in do_interrupt()
190 env->sregs[SR_PC], env->sregs[SR_EAR], env->iflags); in do_interrupt()
218 env->sregs[SR_PC], env->sregs[SR_MSR], t, env->iflags, in do_interrupt()
227 env->sregs[SR_PC], env->sregs[SR_MSR], t, env->iflags); in do_interrupt()
233 env->regs[14] = env->sregs[SR_PC]; in do_interrupt()
245 env->sregs[SR_PC], env->sregs[SR_MSR], t, env->iflags); in do_interrupt()
[all …]
/illumos-kvm-cmd/darwin-user/
H A Dmain.c465 ret = do_mach_syscall(env, env->gpr[0], env->gpr[3], env->gpr[4], in cpu_loop()
466 env->gpr[5], env->gpr[6], env->gpr[7], in cpu_loop()
467 env->gpr[8], env->gpr[9], env->gpr[10]); in cpu_loop()
469 ret = do_thread_syscall(env, env->gpr[0], env->gpr[3], env->gpr[4], in cpu_loop()
470 env->gpr[5], env->gpr[6], env->gpr[7], in cpu_loop()
471 env->gpr[8], env->gpr[9], env->gpr[10]); in cpu_loop()
549 env->eflags = env->eflags | 0x1; in set_error()
574 ret = do_mach_syscall(env, env->regs[R_EAX], in cpu_loop()
586 env->regs[R_ESP] = env->regs[R_ECX]; in cpu_loop()
588 ret = do_unix_syscall(env, env->regs[R_EAX]); in cpu_loop()
[all …]
/illumos-kvm-cmd/target-sparc/
H A Dmachine.c9 CPUState *env = opaque; in cpu_save() local
15 cpu_set_cwp(env, env->cwp); in cpu_save()
29 u.f = env->fpr[i]; in cpu_save()
33 qemu_put_betls(f, &env->pc); in cpu_save()
35 qemu_put_betls(f, &env->y); in cpu_save()
36 tmp = cpu_get_psr(env); in cpu_save()
40 tmp = env->interrupt_index; in cpu_save()
105 CPUState *env = opaque; in cpu_load() local
124 env->fpr[i] = u.f; in cpu_load()
133 cpu_put_psr(env, tmp); in cpu_load()
[all …]
/illumos-kvm-cmd/target-mips/
H A Dhelper.c243 env->CP0_Context = (env->CP0_Context & ~0x007fffff) | in raise_mmu_exception()
248 env->CP0_EntryHi &= env->SEGMask; in raise_mmu_exception()
249 env->CP0_XContext = (env->CP0_XContext & ((~0ULL) << (env->SEGBITS - 7))) | in raise_mmu_exception()
395 env->hflags |= (!!(env->CP0_Config3 in set_hflags_for_handler()
429 env->CP0_DEPC = env->active_tc.PC | !!(env->hflags & MIPS_HFLAG_M16); in do_interrupt()
446 env->CP0_DEPC = exception_resume_pc(env); in do_interrupt()
462 memset(env->CP0_WatchLo, 0, sizeof(*env->CP0_WatchLo)); in do_interrupt()
467 env->CP0_ErrorEPC = exception_resume_pc(env); in do_interrupt()
606 env->CP0_EPC = exception_resume_pc(env); in do_interrupt()
635 env->CP0_Status, env->CP0_Cause, env->CP0_BadVAddr, in do_interrupt()
[all …]
H A Dmachine.c45 CPUState *env = opaque; in cpu_save() local
49 save_tc(f, &env->active_tc); in cpu_save()
52 save_fpu(f, &env->active_fpu); in cpu_save()
87 i = env->bcond; in cpu_save()
149 save_tc(f, &env->tcs[i]); in cpu_save()
193 CPUState *env = opaque; in cpu_load() local
200 load_tc(f, &env->active_tc); in cpu_load()
203 load_fpu(f, &env->active_fpu); in cpu_load()
240 env->bcond = i; in cpu_load()
301 load_tc(f, &env->tcs[i]); in cpu_load()
[all …]
H A Dop_helper.c928 return env->lladdr >> env->CP0_LLAddr_shift; in helper_dmfc0_lladdr()
1205 env->CP0_Wired = arg1 % env->tlb->nb_tlb; in helper_mtc0_wired()
1290 env->CP0_Status = (env->CP0_Status & ~mask) | val; in helper_mtc0_status()
1373 env->CP0_Config2 = (env->CP0_Config2 & 0x8FFF0FFF); in helper_mtc0_config2()
1380 env->lladdr = (env->lladdr & ~mask) | (arg1 & mask); in helper_mtc0_lladdr()
1625 env->tlb->tlb_in_use = env->tlb->nb_tlb; in cpu_mips_tlb_flush()
1648 tlb->G = env->CP0_EntryLo0 & env->CP0_EntryLo1 & 1; in r4k_fill_tlb()
1668 r4k_mips_tlb_flush_extra (env, env->tlb->nb_tlb); in r4k_helper_tlbwi()
1738 r4k_mips_tlb_flush_extra(env, env->tlb->nb_tlb); in r4k_helper_tlbr()
1789 env->active_tc.PC, env->CP0_EPC); in debug_pre_eret()
[all …]
H A Dexec.h11 register struct CPUMIPSState *env asm(AREG0);
41 if (!env->halted) in cpu_halted()
43 if (cpu_has_work(env)) { in cpu_halted()
44 env->halted = 0; in cpu_halted()
58 env->hflags |= (env->CP0_Status >> CP0St_KSU) & MIPS_HFLAG_KSU; in compute_hflags()
64 env->hflags |= MIPS_HFLAG_64; in compute_hflags()
66 env->hflags |= MIPS_HFLAG_UX; in compute_hflags()
70 env->hflags |= MIPS_HFLAG_CP0; in compute_hflags()
72 env->hflags |= MIPS_HFLAG_FPU; in compute_hflags()
93 env->active_tc.PC = tb->pc; in cpu_pc_from_tb()
[all …]
/illumos-kvm-cmd/target-i386/
H A Dhelper.c90 env->regs[R_EDX] = env->cpuid_version; in cpu_reset()
101 memset(env->dr, 0, sizeof(env->dr)); in cpu_reset()
343 env->gdt.base, env->gdt.limit); in cpu_dump_state()
345 env->idt.base, env->idt.limit); in cpu_dump_state()
354 env->dr[6], env->dr[7]); in cpu_dump_state()
371 env->dr[6], env->dr[7]); in cpu_dump_state()
381 env->cc_src, env->cc_dst, in cpu_dump_state()
990 err = cpu_watchpoint_insert(env, env->dr[index], in hw_breakpoint_insert()
1027 if ((type == 0 && env->dr[reg] == env->eip) || in check_hw_breakpoints()
1148 for (env = first_cpu; env != NULL; env = env->next_cpu) { in cpu_inject_x86_mce()
[all …]
H A Dkvm.c284 .env = env, in kvm_inject_x86_mce_on()
376 c->eax = env->cpuid_kvm_features & get_para_features(env); in kvm_arch_init_vcpu()
709 memcpy(fpu.fpr, env->fpregs, sizeof env->fpregs); in kvm_put_fpu()
710 memcpy(fpu.xmm, env->xmm_regs, sizeof env->xmm_regs); in kvm_put_fpu()
928 memcpy(env->fpregs, fpu.fpr, sizeof env->fpregs); in kvm_get_fpu()
929 memcpy(env->xmm_regs, fpu.xmm, sizeof env->xmm_regs); in kvm_get_fpu()
1086 env->hflags = (env->hflags & HFLAG_COPY_MASK) | hflags; in kvm_get_sregs()
1379 env->dr[4] = env->dr[6] = dbgregs.dr6; in kvm_get_debugregs()
1380 env->dr[5] = env->dr[7] = dbgregs.dr7; in kvm_get_debugregs()
1391 assert(cpu_is_stopped(env) || qemu_cpu_self(env)); in kvm_arch_put_registers()
[all …]
/illumos-kvm-cmd/target-ppc/
H A Dhelper.c43 # define LOG_MMU_STATE(env) log_cpu_state((env), 0) argument
1284 (env->pb[0] < env->pb[1] && in check_physical()
1287 (env->pb[2] < env->pb[3] && in check_physical()
2560 env->spr[srr0] = env->nip - 4; in powerpc_excp()
2564 env->spr[srr0] = env->nip; in powerpc_excp()
2571 env->spr[asrr0] = env->spr[srr0]; in powerpc_excp()
2573 env->spr[asrr1] = env->spr[srr1]; in powerpc_excp()
2607 env->msr = new_msr & env->msr_mask; in powerpc_excp()
2624 powerpc_excp(env, env->excp_model, env->exception_index); in do_interrupt()
2779 env->nip = env->hreset_vector | env->excp_prefix; in cpu_reset()
[all …]
H A Dmachine.c8 CPUState *env = (CPUState *)opaque; in cpu_save() local
17 qemu_put_betls(f, &env->lr); in cpu_save()
18 qemu_put_betls(f, &env->ctr); in cpu_save()
21 qemu_put_betls(f, &env->xer); in cpu_save()
23 qemu_put_betls(f, &env->msr); in cpu_save()
31 u.d = env->fpr[i]; in cpu_save()
38 qemu_put_betls(f, &env->asr); in cpu_save()
41 qemu_put_betls(f, &env->sdr1); in cpu_save()
56 if (env->tlb) { in cpu_save()
119 env->fpr[i] = u.d; in cpu_load()
[all …]
H A Dtranslate_init.c3351 gen_tbl(env); in init_proc_405()
3399 gen_tbl(env); in init_proc_440EP()
3479 gen_tbl(env); in init_proc_440GP()
3541 gen_tbl(env); in init_proc_440x4()
3602 gen_tbl(env); in init_proc_440x5()
3683 gen_tbl(env); in init_proc_460()
3772 gen_tbl(env); in init_proc_460F()
3854 gen_tbl(env); in init_proc_MPC5xx()
3880 gen_tbl(env); in init_proc_MPC8xx()
8947 env->excp_prefix = env->hreset_excp_prefix; in init_ppc_proc()
[all …]
/illumos-kvm-cmd/target-m68k/
H A Dhelper.c167 env->pc = 0; in cpu_reset()
190 cpu_reset(env); in cpu_m68k_init()
192 return env; in cpu_m68k_init()
197 qemu_free(env); in cpu_m68k_close()
338 env->sp[env->current_sp] = env->aregs[7]; in m68k_switch_sp()
339 new_sp = (env->sr & SR_S && env->cacr & M68K_CACR_EUSP) in m68k_switch_sp()
341 env->aregs[7] = env->sp[new_sp]; in m68k_switch_sp()
433 cpu_m68k_flush_flags(env, env->cc_op); in HELPER()
456 cpu_m68k_flush_flags(env, env->cc_op); in HELPER()
540 env->cc_x = cf; in HELPER()
[all …]
/illumos-kvm-cmd/linux-user/
H A Dmain.c862 new_wim = ((env->wim >> 1) | (env->wim << (env->nwindows - 1))) & in save_window()
864 save_window_offset(env, cpu_cwp_dec(env, env->cwp - 2)); in save_window()
867 save_window_offset(env, cpu_cwp_dec(env, env->cwp - 2)); in save_window()
882 new_wim = ((env->wim << 1) | (env->wim >> (env->nwindows - 1))) & in restore_window()
979 env->pc = env->npc; in cpu_loop()
980 env->npc = env->npc + 4; in cpu_loop()
988 env->pc = env->npc; in cpu_loop()
989 env->npc = env->npc + 4; in cpu_loop()
1550 env->gpr[3], env->gpr[4], env->gpr[5], env->gpr[6]); in cpu_loop()
1553 ret = do_syscall(env, env->gpr[0], env->gpr[3], env->gpr[4], in cpu_loop()
[all …]
H A Dvm86.c101 env->eflags, env->segs[R_CS].selector, env->eip); in save_v86_state()
170 clear_IF(env); in set_vflags_long()
183 clear_IF(env); in set_vflags_short()
232 clear_TF(env); in do_int()
233 clear_IF(env); in do_int()
234 clear_AC(env); in do_int()
275 env->segs[R_CS].selector, env->eip); in handle_vm86_fault()
307 env->eip = ip; in handle_vm86_fault()
318 env->eip = ip; in handle_vm86_fault()
432 env->eflags = (env->eflags & ~SAFE_MASK) | in do_vm86()
[all …]
/illumos-kvm-cmd/bsd-user/
H A Dmain.c433 new_wim = ((env->wim >> 1) | (env->wim << (env->nwindows - 1))) & in save_window()
435 save_window_offset(env, cpu_cwp_dec(env, env->cwp - 2)); in save_window()
438 save_window_offset(env, cpu_cwp_dec(env, env->cwp - 2)); in save_window()
453 new_wim = ((env->wim << 1) | (env->wim >> (env->nwindows - 1))) & in restore_window()
572 env->npc = env->pc + 4; in cpu_loop()
576 env->npc = env->pc + 4; in cpu_loop()
578 env->pc = env->npc; in cpu_loop()
582 env->pc = env->npc; in cpu_loop()
583 env->npc = env->npc + 4; in cpu_loop()
592 env->pc = env->npc; in cpu_loop()
[all …]
/illumos-kvm-cmd/target-alpha/
H A Dhelper.c53 t = env->fpcr_exc_mask; in cpu_alpha_load_fpcr()
85 if (env->fpcr_dnz) { in cpu_alpha_load_fpcr()
88 if (env->fpcr_dnod) { in cpu_alpha_load_fpcr()
91 if (env->fpcr_undz) { in cpu_alpha_load_fpcr()
521 env->ipr[IPR_EXC_ADDR] = env->pc | 1; in do_interrupt()
528 env->pc = env->ipr[IPR_PAL_BASE] + excp; in do_interrupt()
531 call_pal(env); in do_interrupt()
533 env->pc = env->ipr[IPR_EXC_ADDR] & ~7; in do_interrupt()
534 env->ipr[IPR_EXC_ADDR] = env->ipr[IPR_EXC_ADDR] & 1; in do_interrupt()
552 env->pc, env->ps); in cpu_dump_state()
[all …]
/illumos-kvm-cmd/target-s390x/
H A Dkvm.c118 env->kvm_run->psw_addr = env->psw.addr; in kvm_arch_put_registers()
119 env->kvm_run->psw_mask = env->psw.mask; in kvm_arch_put_registers()
139 env->psw.addr = env->kvm_run->psw_addr; in kvm_arch_get_registers()
140 env->psw.mask = env->kvm_run->psw_mask; in kvm_arch_get_registers()
193 if (!env->kvm_state) { in kvm_s390_interrupt_internal()
197 env->halted = 0; in kvm_s390_interrupt_internal()
265 setcc(env, 0); in sclp_service_call()
278 setcc(env, 3); in sclp_service_call()
335 env->halted = 0; in s390_cpu_restart()
337 qemu_cpu_kick(env); in s390_cpu_restart()
[all …]
/illumos-kvm-cmd/
H A Dcpus.c57 CPUState *env; in hw_error() local
63 for(env = first_cpu; env != NULL; env = env->next_cpu) { in hw_error()
122 if (env->stop) in cpu_can_run()
131 if (env->stop) in cpu_has_work()
148 for (env = first_cpu; env != NULL; env = env->next_cpu) in any_cpu_has_work()
304 if (env) { in qemu_notify_event()
507 for (env = first_cpu; env != NULL; env = env->next_cpu) { in qemu_tcg_wait_io_event()
633 for (env = first_cpu; env != NULL; env = env->next_cpu) in tcg_cpu_thread_fn()
825 qemu_thread_create(env->thread, kvm_cpu_thread_fn, env); in kvm_start_vcpu()
942 for (env = first_cpu; env != NULL; env = env->next_cpu) { in set_numa_modes()
[all …]
/illumos-kvm-cmd/target-sh4/
H A Dhelper.c40 env->tea = address; in cpu_sh4_handle_mmu_fault()
158 env->ssr = env->sr; in do_interrupt()
159 env->spc = env->pc; in do_interrupt()
160 env->sgr = env->gregs[15]; in do_interrupt()
165 env->spc -= 2; in do_interrupt()
173 env->expevt = env->exception_index; in do_interrupt()
184 env->pc = env->vbr + 0x400; in do_interrupt()
190 env->pc = env->vbr + 0x100; in do_interrupt()
198 env->pc = env->vbr + 0x600; in do_interrupt()
280 env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10); in increment_urc()
[all …]

Completed in 167 milliseconds

123456789