This patch adds emulation for instructions protected by User-Mode Instruction Prevention (currently implemented by AMD Ryzen 3000 CPUs and some rare Intel CPUs).
Changes from previous patch: all code is now integrated into the signal_*.c files, and fixed a warning in the 32-bit code.
Brendan Shanks (2): ntdll: Add emulation for UMIP instructions. ntdll/tests: Add tests for UMIP instructions.
dlls/ntdll/signal_i386.c | 362 +++++++++++++++++++++++++++++++- dlls/ntdll/signal_x86_64.c | 395 ++++++++++++++++++++++++++++++++++- dlls/ntdll/tests/exception.c | 375 +++++++++++++++++++++++++++++++++ 3 files changed, 1116 insertions(+), 16 deletions(-)