about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run0f.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index de5472e7..673f2d2b 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -378,7 +378,12 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step)
             }

             CLEAR_FLAG(F_OF); CLEAR_FLAG(F_AF); CLEAR_FLAG(F_SF);

             break;

-

+        case 0x30:                      /* WRMSR */

+            // this is a privilege opcode...

+            #ifndef TEST_INTERPRETER

+            emit_signal(emu, SIGSEGV, (void*)R_RIP, 0);

+            #endif

+            break;

         case 0x31:                   /* RDTSC */

             tmp64u = ReadTSC(emu);

             if(box64_rdtsc_shift)