Home
last modified time | relevance | path

Searched refs:cpu_ (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/binary_translation/runtime_primitives/
Dvirtual_guest_call_frame_riscv64.cc51 ScopedVirtualGuestCallFrame::ScopedVirtualGuestCallFrame(CPUState* cpu, GuestAddr pc) : cpu_(cpu) { in ScopedVirtualGuestCallFrame()
53 SetXReg<SP>(*cpu_, GetXReg<SP>(*cpu_) - 16); in ScopedVirtualGuestCallFrame()
56 uint64_t* saved_regs = ToHostAddr<uint64_t>(GetXReg<SP>(*cpu_)); in ScopedVirtualGuestCallFrame()
57 saved_regs[0] = GetXReg<FP>(*cpu_); in ScopedVirtualGuestCallFrame()
58 saved_regs[1] = GetXReg<RA>(*cpu_); in ScopedVirtualGuestCallFrame()
60 SetXReg<FP>(*cpu_, GetXReg<SP>(*cpu_)); in ScopedVirtualGuestCallFrame()
63 stack_pointer_ = GetXReg<FP>(*cpu_); in ScopedVirtualGuestCallFrame()
64 link_register_ = GetXReg<RA>(*cpu_); in ScopedVirtualGuestCallFrame()
66 program_counter_ = cpu_->insn_addr; in ScopedVirtualGuestCallFrame()
69 SetXReg<RA>(*cpu_, g_return_address_); in ScopedVirtualGuestCallFrame()
[all …]
/frameworks/libs/binary_translation/guest_os_primitives/riscv64/
Dguest_context_arch.h37 cpu_ = *cpu; in Save()
51 *cpu = cpu_; in Restore()
142 CPUState cpu_; variable
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dvirtual_guest_call_frame.h56 CPUState* cpu_; variable