Home
last modified time | relevance | path

Searched refs:CPUState (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/libs/binary_translation/guest_state/include/berberis/guest_state/
Dguest_state_opaque.h28 struct CPUState;
64 const CPUState& GetCPUState(const ThreadState& state);
65 CPUState& GetCPUState(ThreadState& state);
66 void SetCPUState(ThreadState& state, const CPUState& cpu);
68 GuestAddr GetReturnValueRegister(const CPUState& cpu);
69 void SetReturnValueRegister(CPUState& cpu, GuestAddr val);
71 void SetStackRegister(CPUState& cpu, GuestAddr val);
72 GuestAddr GetStackRegister(const CPUState& cpu);
74 void SetLinkRegister(CPUState& cpu, GuestAddr val);
75 GuestAddr GetLinkRegister(const CPUState& cpu);
[all …]
Dget_cpu_state_opaque.h25 int GetCpuState(NativeBridgeGuestRegs* guest_regs, const CPUState* state);
/frameworks/libs/binary_translation/guest_state/arm/
Dguest_state_arch.cc24 void SetReturnValueRegister(CPUState& cpu, GuestAddr val) { in SetReturnValueRegister()
28 GuestAddr GetReturnValueRegister(const CPUState& cpu) { in GetReturnValueRegister()
32 void SetStackRegister(CPUState& cpu, GuestAddr val) { in SetStackRegister()
36 GuestAddr GetStackRegister(const CPUState& cpu) { in GetStackRegister()
40 void SetLinkRegister(CPUState& cpu, GuestAddr val) { in SetLinkRegister()
44 GuestAddr GetLinkRegister(const CPUState& cpu) { in GetLinkRegister()
56 void SetShadowCallStackPointer(CPUState& cpu, GuestAddr scs_sp) { in SetShadowCallStackPointer()
60 void AdvanceInsnAddrBeyondSyscall(CPUState& cpu) { in AdvanceInsnAddrBeyondSyscall()
/frameworks/libs/binary_translation/guest_state/arm64/
Dguest_state_arch.cc24 void SetReturnValueRegister(CPUState& cpu, GuestAddr val) { in SetReturnValueRegister()
28 GuestAddr GetReturnValueRegister(const CPUState& cpu) { in GetReturnValueRegister()
32 void SetStackRegister(CPUState& cpu, GuestAddr val) { in SetStackRegister()
36 GuestAddr GetStackRegister(const CPUState& cpu) { in GetStackRegister()
40 void SetLinkRegister(CPUState& cpu, GuestAddr val) { in SetLinkRegister()
44 GuestAddr GetLinkRegister(const CPUState& cpu) { in GetLinkRegister()
56 void SetShadowCallStackPointer(CPUState& cpu, GuestAddr scs_sp) { in SetShadowCallStackPointer()
60 void AdvanceInsnAddrBeyondSyscall(CPUState& cpu) { in AdvanceInsnAddrBeyondSyscall()
Dget_cpu_state_test.cc32 CPUState cpu_state; in TEST()
33 for (size_t off = 0; off < sizeof(CPUState); off++) { in TEST()
58 CPUState cpu_state; in TEST()
Dget_cpu_state.cc37 int GetCpuState(NativeBridgeGuestRegs* guest_regs, const CPUState* state) { in GetCpuState()
/frameworks/libs/binary_translation/guest_state/riscv64/
Dguest_state_arch.cc25 void SetReturnValueRegister(CPUState& cpu, GuestAddr val) { in SetReturnValueRegister()
29 GuestAddr GetReturnValueRegister(const CPUState& cpu) { in GetReturnValueRegister()
33 void SetStackRegister(CPUState& cpu, GuestAddr val) { in SetStackRegister()
37 GuestAddr GetStackRegister(const CPUState& cpu) { in GetStackRegister()
41 void SetLinkRegister(CPUState& cpu, GuestAddr val) { in SetLinkRegister()
45 GuestAddr GetLinkRegister(const CPUState& cpu) { in GetLinkRegister()
57 void SetShadowCallStackPointer(CPUState& cpu, GuestAddr scs_sp) { in SetShadowCallStackPointer()
61 void AdvanceInsnAddrBeyondSyscall(CPUState& cpu) { in AdvanceInsnAddrBeyondSyscall()
Dget_cpu_state_test.cc32 CPUState cpu_state; in TEST()
33 for (size_t off = 0; off < sizeof(CPUState); off++) { in TEST()
60 CPUState cpu_state; in TEST()
Dget_cpu_state.cc37 int GetCpuState(NativeBridgeGuestRegs* guest_regs, const CPUState* state) { in GetCpuState()
/frameworks/libs/binary_translation/guest_state/
Dguest_state.cc62 memset(&(state->cpu), 0, sizeof(CPUState)); in InitThreadState()
141 const CPUState& GetCPUState(const ThreadState& state) { in GetCPUState()
145 CPUState& GetCPUState(ThreadState& state) { in GetCPUState()
149 void SetCPUState(ThreadState& state, const CPUState& cpu) { in SetCPUState()
153 void SetInsnAddr(CPUState& cpu, GuestAddr addr) { in SetInsnAddr()
157 GuestAddr GetInsnAddr(const CPUState& cpu) { in GetInsnAddr()
/frameworks/libs/binary_translation/runtime_primitives/
Dmemory_region_reservation_test.cc30 CPUState cpu{}; in TEST()
54 CPUState cpu{}; in TEST()
79 CPUState cpu_1{}; in TEST()
80 CPUState cpu_2{}; in TEST()
108 CPUState cpu_1{}; in TEST()
109 CPUState cpu_2{}; in TEST()
Dvirtual_guest_call_frame_riscv64_test.cc34 CPUState cpu{}; in TEST()
47 void RunGuestCall(CPUState* cpu) { in RunGuestCall()
62 CPUState cpu{}; in TEST()
Dvirtual_guest_call_frame_riscv64.cc51 ScopedVirtualGuestCallFrame::ScopedVirtualGuestCallFrame(CPUState* cpu, GuestAddr pc) : cpu_(cpu) { in ScopedVirtualGuestCallFrame()
/frameworks/libs/binary_translation/guest_state/arm64/include/berberis/guest_state/
Dguest_state_arch.h31 CPUState cpu;
56 constexpr unsigned kNumGuestRegs = std::size(CPUState{}.x);
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dvirtual_guest_call_frame.h48 ScopedVirtualGuestCallFrame(CPUState* cpu, GuestAddr pc);
56 CPUState* cpu_;
Dmemory_region_reservation.h34 static GuestAddr Clear(CPUState* cpu) { in Clear()
41 static Type Load(CPUState* cpu, GuestAddr addr, std::memory_order mem_order) { in Load()
56 static uint32_t Store(CPUState* cpu, GuestAddr addr, Type value, std::memory_order mem_order) { in Store()
/frameworks/libs/binary_translation/guest_os_primitives/riscv64/
Dguest_context_arch.h35 void Save(const CPUState* cpu) { in Save()
49 void Restore(CPUState* cpu) const { in Restore()
142 CPUState cpu_;
/frameworks/libs/binary_translation/backend/x86_64/
Dloop_guest_context_optimizer_test.cc48 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
73 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
100 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
132 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
160 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
188 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
216 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
244 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
272 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
298 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
[all …]
Dloop_guest_context_optimizer.cc202 ArenaVector<int> guest_access_count(sizeof(CPUState), 0, ir->arena()); in CountGuestRegAccesses()
218 for (size_t offset = 0; offset < sizeof(CPUState); offset++) { in GetSortedOffsetCounters()
234 ArenaVector<bool> optimized_offsets(sizeof(CPUState), false, machine_ir->arena()); in OptimizeLoop()
253 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir->arena()); in OptimizeLoop()
/frameworks/libs/binary_translation/guest_state/arm/include/berberis/guest_state/
Dguest_state_arch.h30 CPUState cpu;
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/riscv64/guest_state/
Dguest_state_cpu_state.h25 struct CPUState { struct
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/arm64/guest_state/
Dguest_state_cpu_state.h27 struct CPUState { struct
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/arm/guest_state/
Dguest_state_cpu_state.h29 struct CPUState { struct
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/
Dcontext_liveness_analyzer.h37 using ContextLiveness = std::bitset<sizeof(CPUState)>;
/frameworks/libs/binary_translation/runtime/
Druntime_library.cc40 CPUState& cpu = GetCPUState(*state); in berberis_HandleNoExec()

12