Home
last modified time | relevance | path

Searched refs:R_GS (Results 1 – 25 of 35) sorted by relevance

12

/openbmc/qemu/linux-user/i386/
H A Dtarget_cpu.h44 cpu_x86_load_seg(env, R_GS, env->segs[R_GS].selector); in cpu_set_tls()
H A Dcpu_loop.c433 cpu_x86_load_seg(env, R_GS, __USER_DS); in target_cpu_copy_regs()
440 cpu_x86_load_seg(env, R_GS, 0); in target_cpu_copy_regs()
H A Dsignal.c353 __put_user(env->segs[R_GS].selector, (uint32_t *)&sc->gs); in setup_sigcontext()
720 cpu_x86_load_seg(env, R_GS, tswap16(sc->gs)); in restore_sigcontext()
/openbmc/qemu/bsd-user/i386/
H A Dtarget_arch_sysarch.h36 idx = R_GS; in do_freebsd_arch_sysarch()
50 idx = R_GS; in do_freebsd_arch_sysarch()
H A Dtarget_arch_reg.h79 regs->r_gs = env->segs[R_GS].selector & 0xffff; in target_copy_regs()
H A Dtarget_arch_cpu.h100 cpu_x86_load_seg(env, R_GS, __USER_DS); in target_cpu_init()
/openbmc/qemu/bsd-user/x86_64/
H A Dtarget_arch_sysarch.h35 idx = R_GS; in do_freebsd_arch_sysarch()
49 idx = R_GS; in do_freebsd_arch_sysarch()
H A Dtarget_arch_reg.h81 regs->r_gs = env->segs[R_GS].selector & 0xffff; in target_copy_regs()
H A Dtarget_arch_cpu.h110 cpu_x86_load_seg(env, R_GS, 0); in target_cpu_init()
/openbmc/u-boot/drivers/bios_emulator/
H A Dbiosemu.c258 M.x86.R_GS = sregs->gs; in BE_callRealMode()
284 sregs->gs = M.x86.R_GS; in BE_callRealMode()
349 M.x86.R_GS = sregs->gs; in BE_int86x()
370 sregs->gs = M.x86.R_GS; in BE_int86x()
/openbmc/qemu/target/i386/
H A Dgdbstub.c173 return gdb_get_reg32(mem_buf, env->segs[R_GS].selector); in x86_cpu_gdb_read_register()
177 return gdb_read_reg_cs64(env->hflags, mem_buf, env->segs[R_GS].base); in x86_cpu_gdb_read_register()
332 return x86_cpu_gdb_load_seg(cpu, R_GS, mem_buf); in x86_cpu_gdb_write_register()
336 return gdb_write_reg_cs64(env->hflags, mem_buf, &env->segs[R_GS].base); in x86_cpu_gdb_write_register()
H A Darch_dump.c77 regs.gs_base = env->segs[R_GS].base; in x86_64_write_elf64_note()
81 regs.gs = env->segs[R_GS].selector; in x86_64_write_elf64_note()
145 prstatus->regs.gs = env->segs[R_GS].selector; in x86_fill_elf_prstatus()
312 copy_segment(&s->gs, &env->segs[R_GS]); in qemu_get_cpustate()
H A Dmachine.c247 env->segs[R_GS].flags &= ~(env->segs[R_GS].flags & DESC_DPL_MASK); in cpu_pre_save()
345 env->segs[R_GS].flags &= ~(env->segs[R_GS].flags & DESC_DPL_MASK); in cpu_post_load()
H A Dmonitor.c639 SEG("gs", R_GS)
/openbmc/qemu/linux-user/
H A Dvm86.c74 target_v86->regs.gs = tswap16(env->segs[R_GS].selector); in save_v86_state()
98 cpu_x86_load_seg(env, R_GS, ts->vm86_saved_regs.gs); in save_v86_state()
235 ts->vm86_saved_regs.gs = env->segs[R_GS].selector; in do_vm86()
274 cpu_x86_load_seg(env, R_GS, tswap16(target_v86->regs.gs)); in do_vm86()
/openbmc/qemu/target/i386/hvf/
H A Dx86hvf.c119 hvf_set_segment(cs, &seg, &env->segs[R_GS], false); in hvf_put_segments()
120 vmx_write_segment_descriptor(cs, &seg, R_GS); in hvf_put_segments()
149 hv_vcpu_write_msr(cs->accel->fd, MSR_GSBASE, env->segs[R_GS].base); in hvf_put_msrs()
186 vmx_read_segment_descriptor(cs, &seg, R_GS); in hvf_get_segments()
187 hvf_get_segment(&env->segs[R_GS], &seg); in hvf_get_segments()
H A Dx86_task.c56 tss->gs = vmx_read_segment_selector(cpu, R_GS).sel; in save_state_to_tss32()
85 vmx_write_segment_selector(cpu, (x68_segment_selector){{tss->gs}}, R_GS); in load_state_from_tss32()
/openbmc/qemu/target/i386/tcg/sysemu/
H A Dmisc_helper.c224 env->segs[R_GS].base = val; in helper_wrmsr()
383 val = env->segs[R_GS].base; in helper_rdmsr()
H A Dsvm_helper.c502 addr + offsetof(struct vmcb, save.gs), R_GS); in helper_vmload()
563 &env->segs[R_GS]); in helper_vmsave()
H A Dsmm_helper.c189 cpu_x86_load_seg_cache(env, R_GS, 0, 0, 0xffffffff, in do_smm_enter()
/openbmc/qemu/target/i386/tcg/
H A Dseg_helper.c456 new_segs[R_GS] = 0; in switch_tss_ra()
570 tss_load_seg(env, R_GS, new_segs[R_GS], cpl, retaddr); in switch_tss_ra()
817 pushl(&sa, env->segs[R_GS].selector); in do_interrupt_protected()
834 pushw(&sa, env->segs[R_GS].selector); in do_interrupt_protected()
861 cpu_x86_load_seg_cache(env, R_GS, 0, 0, 0, 0); in do_interrupt_protected()
1977 if ((seg_reg == R_FS || seg_reg == R_GS) && in validate_seg()
2172 validate_seg(env, R_GS, rpl); in helper_ret_protected()
2212 load_seg_vm(env, R_GS, new_gs & 0xffff); in helper_ret_protected()
/openbmc/u-boot/drivers/bios_emulator/include/x86emu/
H A Dregs.h176 #define R_GS seg.GS macro
/openbmc/u-boot/drivers/bios_emulator/x86emu/
H A Ddecode.c281 return M.x86.R_GS; in get_data_segment()
714 return &M.x86.R_GS; in decode_rm_seg_register()
H A Dops2.c492 push_word(M.x86.R_GS); in x86emuOp2_push_GS()
506 M.x86.R_GS = pop_word(); in x86emuOp2_pop_GS()
958 M.x86.R_GS = fetch_data_word(srcoffset + 2); in x86emuOp2_lgs_R_IMM()
/openbmc/qemu/target/i386/nvmm/
H A Dnvmm-all.c122 nvmm_set_segment(&state->segs[NVMM_X64_SEG_GS], &env->segs[R_GS]); in nvmm_set_registers()
275 nvmm_get_segment(&env->segs[R_GS], &state->segs[NVMM_X64_SEG_GS]); in nvmm_get_registers()

12