Searched refs:uc_mcontext (Results 1 – 8 of 8) sorted by relevance
/frameworks/libs/binary_translation/guest_os_primitives/riscv64/ |
D | guest_context_arch.h | 41 static_assert(sizeof(cpu->x) == sizeof(ctx_.uc_mcontext.sc_regs)); in Save() 42 memcpy(&ctx_.uc_mcontext.sc_regs, cpu->x, sizeof(ctx_.uc_mcontext.sc_regs)); in Save() 44 static_assert(sizeof(cpu->f) == sizeof(ctx_.uc_mcontext.sc_fpregs.d.f)); in Save() 45 memcpy(ctx_.uc_mcontext.sc_fpregs.d.f, cpu->f, sizeof(ctx_.uc_mcontext.sc_fpregs.d.f)); in Save() 46 ctx_.uc_mcontext.sc_regs.pc = cpu->insn_addr; in Save() 54 memcpy(cpu->x, &ctx_.uc_mcontext.sc_regs, sizeof(ctx_.uc_mcontext.sc_regs)); in Restore() 55 memcpy(cpu->f, ctx_.uc_mcontext.sc_fpregs.d.f, sizeof(ctx_.uc_mcontext.sc_fpregs.d.f)); in Restore() 56 cpu->insn_addr = ctx_.uc_mcontext.sc_regs.pc; in Restore() 130 Guest_sigcontext uc_mcontext; member 139 CHECK_FIELD_LAYOUT(Guest_ucontext, uc_mcontext, 1408, 6272);
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/riscv64/ |
D | sigill_test.cc | 35 EXPECT_EQ(static_cast<ucontext*>(ctx)->uc_mcontext.__gregs[REG_PC], in SigillSignalHandlerRiscv64() 66 EXPECT_EQ(static_cast<ucontext*>(ctx)->uc_mcontext.__gregs[REG_PC], in SigillFenceISignalHandlerRiscv64()
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm/ |
D | sigill_test.cc | 38 ASSERT_EQ(static_cast<ucontext*>(ctx)->uc_mcontext.arm_pc, in SigillSignalHandlerArm() 85 ASSERT_EQ(static_cast<ucontext*>(ctx)->uc_mcontext.arm_pc, in SigillSignalHandlerThumb()
|
/frameworks/libs/binary_translation/interpreter/riscv64/ |
D | faulty_memory_accesses_test.cc | 42 void* fault_addr = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[kRegIP]); in FaultHandler() 45 ucontext->uc_mcontext.gregs[kRegIP] = reinterpret_cast<greg_t>(recovery_addr); in FaultHandler()
|
D | interpreter_test.cc | 60 void* fault_addr = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[kRegIP]); in FaultHandler() 64 ucontext->uc_mcontext.gregs[kRegIP] = reinterpret_cast<greg_t>(recovery_addr); in FaultHandler()
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm64/ |
D | sigill_test.cc | 37 EXPECT_EQ(static_cast<ucontext*>(ctx)->uc_mcontext.pc, in SigillSignalHandlerArm64()
|
/frameworks/libs/binary_translation/guest_os_primitives/ |
D | guest_signal_handling.cc | 114 uintptr_t addr = ucontext->uc_mcontext.gregs[kHostRegIP]; in HandleHostSignal() 130 ucontext->uc_mcontext.gregs[kHostRegIP] = recovery_addr; in HandleHostSignal()
|
/frameworks/libs/binary_translation/backend/x86_64/ |
D | machine_ir_exec_test.cc | 717 uintptr_t rip = ucontext->uc_mcontext.gregs[REG_RIP]; in SigsegvHandler() 720 ucontext->uc_mcontext.gregs[REG_RIP] = it->second; in SigsegvHandler()
|