x86: sandbox: Add a PMC emulator and test