From ed87cc1b1ead7129da93a09a6cbdbbf11d2c5e40 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 6 Jan 2024 10:56:03 +0100 Subject: [INTERPRETER] Improved 0F 01 opcode ([ARM64_DYNAREC] too) --- src/emu/x64run0f.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/emu') diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c index 3470c443..2fc24b47 100644 --- a/src/emu/x64run0f.c +++ b/src/emu/x64run0f.c @@ -55,6 +55,27 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) switch(opcode) { + case 0x01: /* XGETBV, SGDT, etc... */ + // this is a privilege opcode... + nextop = F8; + GETED(0); + switch(nextop) { + case 0xD0: + #ifndef TEST_INTERPRETER + emit_signal(emu, SIGILL, (void*)R_RIP, 0); + #endif + break; + default: + switch((nextop>>3)&7) { + case 0: // SGDT + // do nothing for now... + break; + default: + return 0; + } + } + break; + case 0x05: /* SYSCALL */ #ifndef TEST_INTERPRETER R_RIP = addr; -- cgit 1.4.1