Skip to content

Commit

Permalink
[INTERP] Added more nops ([DYNAREC] too) (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco authored Feb 17, 2025
1 parent ee5a41e commit f85b9ac
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dynarec/arm64/dynarec_arm64_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,13 @@ uintptr_t dynarec64_64(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
DEFAULT;
}
break;

case 0x18:
case 0x19:
case 0x1F:
INST_NAME("NOP (multibyte)");
nextop = F8;
FAKEED;
break;
case 0x28:
switch(rep) {
case 0:
Expand Down
14 changes: 14 additions & 0 deletions src/dynarec/la64/dynarec_la64_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ uintptr_t dynarec64_64(dynarec_la64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
GETEDO(x4, 0);
emit_or32(dyn, ninst, rex, gd, ed, x3, x4);
break;
case 0x0F:
opcode = F8;
switch (opcode) {
case 0x18:
case 0x19:
case 0x1F:
INST_NAME("NOP (multibyte)");
nextop = F8;
FAKEED;
break;
default:
DEFAULT;
}
break;
case 0x2B:
INST_NAME("SUB Gd, Seg:Ed");
SETFLAGS(X_ALL, SF_SET_PENDING, NAT_FLAGS_FUSION);
Expand Down
7 changes: 7 additions & 0 deletions src/dynarec/rv64/dynarec_rv64_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ uintptr_t dynarec64_64(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
}
break;

case 0x18:
case 0x19:
case 0x1F:
INST_NAME("NOP (multibyte)");
nextop = F8;
FAKEED;
break;
default:
DEFAULT;
}
Expand Down
7 changes: 7 additions & 0 deletions src/emu/x64run64.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ uintptr_t Run64(x64emu_t *emu, rex_t rex, int seg, uintptr_t addr)
return 0;
}
break;

case 0x18:
case 0x19:
case 0x1F: /* NOP (multi-byte) */
nextop = F8;
FAKEED(0);
break;
case 0x28:
switch(rep) {
case 0: /* MOVAPS Gx, FS:Ex */
Expand Down

0 comments on commit f85b9ac

Please sign in to comment.