Lines Matching refs:reg_read
266 static ulong reg_read(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_read() function
284 reg_read(ctxt, nr); in reg_rmw()
556 return address_mask(ctxt, reg_read(ctxt, reg)); in register_address()
1259 unsigned bx = reg_read(ctxt, VCPU_REGS_RBX); in decode_modrm()
1260 unsigned bp = reg_read(ctxt, VCPU_REGS_RBP); in decode_modrm()
1261 unsigned si = reg_read(ctxt, VCPU_REGS_RSI); in decode_modrm()
1262 unsigned di = reg_read(ctxt, VCPU_REGS_RDI); in decode_modrm()
1319 modrm_ea += reg_read(ctxt, base_reg); in decode_modrm()
1327 modrm_ea += reg_read(ctxt, index_reg) << scale; in decode_modrm()
1334 modrm_ea += reg_read(ctxt, base_reg); in decode_modrm()
1474 address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) : 1; in pio_in_emulated()
1476 offset_in_page(reg_read(ctxt, VCPU_REGS_RDI)) : in pio_in_emulated()
1477 PAGE_SIZE - offset_in_page(reg_read(ctxt, VCPU_REGS_RDI)); in pio_in_emulated()
1839 addr.ea = reg_read(ctxt, VCPU_REGS_RSP) & stack_mask(ctxt); in push()
1858 addr.ea = reg_read(ctxt, VCPU_REGS_RSP) & stack_mask(ctxt); in emulate_pop()
1933 rbp = reg_read(ctxt, VCPU_REGS_RBP); in em_enter()
1937 assign_masked(reg_rmw(ctxt, VCPU_REGS_RBP), reg_read(ctxt, VCPU_REGS_RSP), in em_enter()
1940 reg_read(ctxt, VCPU_REGS_RSP) - frame_size, in em_enter()
1947 assign_masked(reg_rmw(ctxt, VCPU_REGS_RSP), reg_read(ctxt, VCPU_REGS_RBP), in em_leave()
1986 unsigned long old_esp = reg_read(ctxt, VCPU_REGS_RSP); in em_pusha()
1992 (ctxt->src.val = old_esp) : (ctxt->src.val = reg_read(ctxt, reg)); in em_pusha()
2226 if (((u32) (old >> 0) != (u32) reg_read(ctxt, VCPU_REGS_RAX)) || in em_cmpxchg8b()
2227 ((u32) (old >> 32) != (u32) reg_read(ctxt, VCPU_REGS_RDX))) { in em_cmpxchg8b()
2232 ctxt->dst.val64 = ((u64)reg_read(ctxt, VCPU_REGS_RCX) << 32) | in em_cmpxchg8b()
2233 (u32) reg_read(ctxt, VCPU_REGS_RBX); in em_cmpxchg8b()
2296 ctxt->dst.val = reg_read(ctxt, VCPU_REGS_RAX); in em_cmpxchg()
2850 rcx = reg_read(ctxt, VCPU_REGS_RCX); in em_sysexit()
2851 rdx = reg_read(ctxt, VCPU_REGS_RDX); in em_sysexit()
2988 tss->ax = reg_read(ctxt, VCPU_REGS_RAX); in save_state_to_tss16()
2989 tss->cx = reg_read(ctxt, VCPU_REGS_RCX); in save_state_to_tss16()
2990 tss->dx = reg_read(ctxt, VCPU_REGS_RDX); in save_state_to_tss16()
2991 tss->bx = reg_read(ctxt, VCPU_REGS_RBX); in save_state_to_tss16()
2992 tss->sp = reg_read(ctxt, VCPU_REGS_RSP); in save_state_to_tss16()
2993 tss->bp = reg_read(ctxt, VCPU_REGS_RBP); in save_state_to_tss16()
2994 tss->si = reg_read(ctxt, VCPU_REGS_RSI); in save_state_to_tss16()
2995 tss->di = reg_read(ctxt, VCPU_REGS_RDI); in save_state_to_tss16()
3102 tss->eax = reg_read(ctxt, VCPU_REGS_RAX); in save_state_to_tss32()
3103 tss->ecx = reg_read(ctxt, VCPU_REGS_RCX); in save_state_to_tss32()
3104 tss->edx = reg_read(ctxt, VCPU_REGS_RDX); in save_state_to_tss32()
3105 tss->ebx = reg_read(ctxt, VCPU_REGS_RBX); in save_state_to_tss32()
3106 tss->esp = reg_read(ctxt, VCPU_REGS_RSP); in save_state_to_tss32()
3107 tss->ebp = reg_read(ctxt, VCPU_REGS_RBP); in save_state_to_tss32()
3108 tss->esi = reg_read(ctxt, VCPU_REGS_RSI); in save_state_to_tss32()
3109 tss->edi = reg_read(ctxt, VCPU_REGS_RDI); in save_state_to_tss32()
3572 if (ctxt->ops->read_pmc(ctxt, reg_read(ctxt, VCPU_REGS_RCX), &pmc)) in em_rdpmc()
3657 msr_data = (u32)reg_read(ctxt, VCPU_REGS_RAX) in em_wrmsr()
3658 | ((u64)reg_read(ctxt, VCPU_REGS_RDX) << 32); in em_wrmsr()
3659 if (ctxt->ops->set_msr(ctxt, reg_read(ctxt, VCPU_REGS_RCX), msr_data)) in em_wrmsr()
3669 if (ctxt->ops->get_msr(ctxt, reg_read(ctxt, VCPU_REGS_RCX), &msr_data)) in em_rdmsr()
3870 if ((address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) != 0) && in em_loop()
3881 if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) in em_jcxz()
3935 eax = reg_read(ctxt, VCPU_REGS_RAX); in em_cpuid()
3936 ecx = reg_read(ctxt, VCPU_REGS_RCX); in em_cpuid()
4275 u64 rax = reg_read(ctxt, VCPU_REGS_RAX); in check_svme_pa()
4297 u64 rcx = reg_read(ctxt, VCPU_REGS_RCX); in check_rdpmc()
4988 op->val = reg_read(ctxt, VCPU_REGS_RCX) & 0xff; in decode_operand()
5038 reg_read(ctxt, VCPU_REGS_RBX) + in decode_operand()
5039 (reg_read(ctxt, VCPU_REGS_RAX) & 0xff)); in decode_operand()
5527 if (address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) == 0) { in x86_emulate_insn()
5704 if ((r->end != 0 || reg_read(ctxt, VCPU_REGS_RCX) & 0x3ff) && in x86_emulate_insn()