Home
last modified time | relevance | path

Searched refs:uc_mcontext (Results 1 – 8 of 8) sorted by relevance

/frameworks/libs/binary_translation/guest_os_primitives/riscv64/
Dguest_context_arch.h41 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/
Dsigill_test.cc35 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/
Dsigill_test.cc38 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/
Dfaulty_memory_accesses_test.cc42 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()
Dinterpreter_test.cc60 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/
Dsigill_test.cc37 EXPECT_EQ(static_cast<ucontext*>(ctx)->uc_mcontext.pc, in SigillSignalHandlerArm64()
/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_signal_handling.cc114 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/
Dmachine_ir_exec_test.cc717 uintptr_t rip = ucontext->uc_mcontext.gregs[REG_RIP]; in SigsegvHandler()
720 ucontext->uc_mcontext.gregs[REG_RIP] = it->second; in SigsegvHandler()