mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 11:00:21 +02:00
undefined instructions are expected to return SIGILL, while implemented instructions that aren't available in CPL-3 are expected to SIGSEGV. Noticed this while testing out CPU-Z, it installs a kernel module and does a bunch of `RDMSR` and `OUTS` instructions. Decided to walk through the rest of the instructions in the `System Instruction Reference` section. Turns out there's a bunch of oddities in there that we don't support. First step is to go through all the explicitl SIGILL and SIGSEGV and implement a test for them. Next step will be implementing the remaining operations that are considered "System" operations but are still available in CPL-3. This list includes: - lar - lgdt - lsl - sidt - sldt - stac - clac - verr - verw