Searched refs:ctx_ (Results 1 – 1 of 1) sorted by relevance
/frameworks/libs/binary_translation/guest_os_primitives/riscv64/ |
D | guest_context_arch.h | 40 memset(&ctx_, 0, sizeof(ctx_)); in Save() 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() 59 void* ptr() { return &ctx_; } in ptr() [all …]
|