Lines Matching defs:tst
86 static void synthesize_ucontext(ThreadState *tst,
93 uc->uc_stack = tst->altstack;
96 # define SC2(reg,REG) uc->__mcontext_data.__ss.reg = tst->arch.vex.guest_##REG
106 uc->__mcontext_data.__ss.__eflags = LibVEX_GuestX86_get_eflags(&tst->arch.vex);
113 static void restore_from_ucontext(ThreadState *tst,
116 # define SC2(REG,reg) tst->arch.vex.guest_##REG = uc->__mcontext_data.__ss.reg
145 ThreadState* tst;
157 tst = VG_(get_ThreadState)(tid);
158 if (! ML_(sf_maybe_extend_stack)(tst, esp, sp_top_of_frame - esp, flags))
174 frame->vex = tst->arch.vex;
175 frame->vex_shadow1 = tst->arch.vex_shadow1;
176 frame->vex_shadow2 = tst->arch.vex_shadow2;
178 frame->mask = tst->sig_mask;
182 synthesize_ucontext(tst, &frame->fake_ucontext, siguc);
222 ThreadState *tst;
228 tst = VG_(get_ThreadState)(tid);
244 tst->arch.vex = frame->vex;
245 tst->arch.vex_shadow1 = frame->vex_shadow1;
246 tst->arch.vex_shadow2 = frame->vex_shadow2;
247 restore_from_ucontext(tst, &frame->fake_ucontext);
249 tst->sig_mask = frame->mask;
250 tst->tmp_sig_mask = frame->mask;
257 tid, tst->arch.vex.guest_EIP);