
When attempting to set all flags except trap flag, the EFLAGS value should be 0x00244ED7, I've tested this on Windows and here https://ideone.com/WQAvk1 which is presumably Linux. Unicorn however has the value 0x00000ED7, bits 11-21 are not set. Bit 21 is the ID bit indicating whether or not CPUID is available.