/frameworks/libs/binary_translation/guest_state/include/berberis/guest_state/ |
D | guest_state_opaque.h | 28 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 …]
|
D | get_cpu_state_opaque.h | 25 int GetCpuState(NativeBridgeGuestRegs* guest_regs, const CPUState* state);
|
/frameworks/libs/binary_translation/guest_state/arm/ |
D | guest_state_arch.cc | 24 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/ |
D | guest_state_arch.cc | 24 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()
|
D | get_cpu_state_test.cc | 32 CPUState cpu_state; in TEST() 33 for (size_t off = 0; off < sizeof(CPUState); off++) { in TEST() 58 CPUState cpu_state; in TEST()
|
D | get_cpu_state.cc | 37 int GetCpuState(NativeBridgeGuestRegs* guest_regs, const CPUState* state) { in GetCpuState()
|
/frameworks/libs/binary_translation/guest_state/riscv64/ |
D | guest_state_arch.cc | 25 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()
|
D | get_cpu_state_test.cc | 32 CPUState cpu_state; in TEST() 33 for (size_t off = 0; off < sizeof(CPUState); off++) { in TEST() 60 CPUState cpu_state; in TEST()
|
D | get_cpu_state.cc | 37 int GetCpuState(NativeBridgeGuestRegs* guest_regs, const CPUState* state) { in GetCpuState()
|
/frameworks/libs/binary_translation/guest_state/ |
D | guest_state.cc | 62 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/ |
D | memory_region_reservation_test.cc | 30 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()
|
D | virtual_guest_call_frame_riscv64_test.cc | 34 CPUState cpu{}; in TEST() 47 void RunGuestCall(CPUState* cpu) { in RunGuestCall() 62 CPUState cpu{}; in TEST()
|
D | virtual_guest_call_frame_riscv64.cc | 51 ScopedVirtualGuestCallFrame::ScopedVirtualGuestCallFrame(CPUState* cpu, GuestAddr pc) : cpu_(cpu) { in ScopedVirtualGuestCallFrame()
|
/frameworks/libs/binary_translation/guest_state/arm64/include/berberis/guest_state/ |
D | guest_state_arch.h | 31 CPUState cpu; 56 constexpr unsigned kNumGuestRegs = std::size(CPUState{}.x);
|
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/ |
D | virtual_guest_call_frame.h | 48 ScopedVirtualGuestCallFrame(CPUState* cpu, GuestAddr pc); 56 CPUState* cpu_;
|
D | memory_region_reservation.h | 34 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/ |
D | guest_context_arch.h | 35 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/ |
D | loop_guest_context_optimizer_test.cc | 48 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 …]
|
D | loop_guest_context_optimizer.cc | 202 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/ |
D | guest_state_arch.h | 30 CPUState cpu;
|
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/riscv64/guest_state/ |
D | guest_state_cpu_state.h | 25 struct CPUState { struct
|
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/arm64/guest_state/ |
D | guest_state_cpu_state.h | 27 struct CPUState { struct
|
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/arm/guest_state/ |
D | guest_state_cpu_state.h | 29 struct CPUState { struct
|
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/ |
D | context_liveness_analyzer.h | 37 using ContextLiveness = std::bitset<sizeof(CPUState)>;
|
/frameworks/libs/binary_translation/runtime/ |
D | runtime_library.cc | 40 CPUState& cpu = GetCPUState(*state); in berberis_HandleNoExec()
|