Lines Matching refs:sreg
487 static Int segmentGuestRegOffset ( UInt sreg )
489 switch (sreg) {
564 static IRExpr* getSReg ( UInt sreg )
566 return IRExpr_Get( segmentGuestRegOffset(sreg), Ity_I16 );
569 static void putSReg ( UInt sreg, IRExpr* e )
572 stmt( IRStmt_Put( segmentGuestRegOffset(sreg), e ) );
1288 static HChar* nameSReg ( UInt sreg )
1290 switch (sreg) {
1421 Int sreg;
1430 case 0x3E: sreg = R_DS; break;
1431 case 0x26: sreg = R_ES; break;
1432 case 0x64: sreg = R_FS; break;
1433 case 0x65: sreg = R_GS; break;
1444 assign( seg_selector, unop(Iop_16Uto32, getSReg(sreg)) );
6816 void dis_push_segreg ( UInt sreg, Int sz )
6822 assign( t1, getSReg(sreg) );
6827 DIP("push%c %s\n", sz==2 ? 'w' : 'l', nameSReg(sreg));
6831 void dis_pop_segreg ( UInt sreg, Int sz )
6841 putSReg( sreg, mkexpr(t1) );
6842 DIP("pop%c %s\n", sz==2 ? 'w' : 'l', nameSReg(sreg));
14895 /* =-=-=-=-=-=-=-=-=- PUSH/POP Sreg =-=-=-=-=-=-=-=-=-= */