Files
xemu/target/i386
Andrew Oates db7196db5d target-i386: fix segment limit check in ljmp
The current implementation has three bugs,
 * segment limits are not enforced in protected mode if the L bit is set
   in the target segment descriptor
 * segment limits are not enforced in compatibility mode (ljmp to 32-bit
   code segment in long mode)
 * #GP(new_cs) is generated rather than #GP(0)

Now the segment limits are enforced if we're not in long mode OR the
target code segment doesn't have the L bit set.

Signed-off-by: Andrew Oates <aoates@google.com>
Message-Id: <20180816011903.39816-1-andrew@andrewoates.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-08-23 18:46:25 +02:00
..
2017-01-10 08:49:59 -08:00
2018-08-16 13:43:01 -03:00
2018-07-02 15:41:18 +02:00
2018-07-02 15:41:18 +02:00
2017-01-10 08:49:59 -08:00
2018-05-09 00:13:39 +02:00
2018-07-02 15:41:18 +02:00
2018-07-02 15:41:18 +02:00
2018-06-28 19:05:31 +02:00