Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. --- a/src/cpu/core_dyn_x86/risc_x64.h
  2. +++ b/src/cpu/core_dyn_x86/risc_x64.h
  3. @@ -468,7 +468,11 @@ static void gen_discardflags(void) {
  4. }
  5.  
  6. static void gen_needcarry(void) {
  7. - gen_needflags();
  8. + if (!x64gen.flagsactive) {
  9. + x64gen.flagsactive=true;
  10. + opcode(4).setea(4,-1,0,CALLSTACK+8).setimm(0,1).Emit16(0xBA0F); // bt [rsp+8/40], 0
  11. + opcode(4).set64().setea(4,-1,0,CALLSTACK+16).Emit8(0x8D); // lea rsp, [rsp+16/48]
  12. + }
  13. }
  14.  
  15. static void gen_setzeroflag(void) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement