Skip to content

Commit

Permalink
Adjust gen_needcarry implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarsh authored and dreamer committed Dec 10, 2019
1 parent e7df2b9 commit 026d417
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cpu/core_dyn_x86/risc_x64.h
Expand Up @@ -468,7 +468,11 @@ static void gen_discardflags(void) {
}

static void gen_needcarry(void) {
gen_needflags();
if (!x64gen.flagsactive) {
x64gen.flagsactive=true;
opcode(4).setea(4,-1,0,CALLSTACK+8).setimm(0,1).Emit16(0xBA0F); // bt [rsp+8/40], 0
opcode(4).set64().setea(4,-1,0,CALLSTACK+16).Emit8(0x8D); // lea rsp, [rsp+16/48]
}
}

static void gen_setzeroflag(void) {
Expand Down

0 comments on commit 026d417

Please sign in to comment.