]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386: simplify handling of conforming code segments on interrupt
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Jun 2017 11:20:09 +0000 (13:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jul 2017 12:30:03 +0000 (14:30 +0200)
commit1110bfe6f5600017258fa6578f9c17ec25b32277
treeb61f67ef255b62c4f8632c07a9052331e2c45cb2
parente95e9b88ba5f4a6c17f4d0c3a3a6bf3f648bb328
target/i386: simplify handling of conforming code segments on interrupt

Move the handling of conforming code segments before the handling
of stack switch.

Because dpl == cpl after the new "if", it's now unnecessary to check
the C bit when testing dpl < cpl.  Furthermore, dpl > cpl is checked
slightly above the modified code, so the final "else" is unreachable
and we can remove it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/seg_helper.c