Skip to content

Commit 7781bfc

Browse files
committed
Added 0F 0E opcode support ([ARM64_DYNAREC] too)
1 parent 0fd81e0 commit 7781bfc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/dynarec/arm64/dynarec_arm64_0f.c

+11
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,17 @@ uintptr_t dynarec64_0F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
165165
DEFAULT;
166166
}
167167
break;
168+
case 0x0E:
169+
INST_NAME("femms");
170+
SETFLAGS(X_ALL, SF_SET); // Hack to set flags in "don't care" state
171+
GETIP(ip);
172+
STORE_XEMU_CALL(xRIP);
173+
CALL(native_ud, -1);
174+
LOAD_XEMU_CALL(xRIP);
175+
jump_to_epilog(dyn, 0, xRIP, ninst);
176+
*need_epilog = 0;
177+
*ok = 0;
178+
break;
168179

169180
case 0x10:
170181
INST_NAME("MOVUPS Gx,Ex");

src/emu/x64run0f.c

+5
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step)
156156
return 0;
157157
}
158158
break;
159+
case 0x0E: /* FEMMS */
160+
#ifndef TEST_INTERPRETER
161+
emit_signal(emu, SIGILL, (void*)R_RIP, 0);
162+
#endif
163+
break;
159164

160165
case 0x10: /* MOVUPS Gx,Ex */
161166
nextop = F8;

0 commit comments

Comments
 (0)