mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-05-22 23:36:56 +00:00

The SET_SREGS ioctl modifies both cr0.pe (real mode/protected mode) and guest segment registers. Since segment handling is modified by the mode on Intel procesors, update the segment registers after the mode switch has taken place. Signed-off-by: Avi Kivity <avi@qumranet.com>