target/i386: Throw a #SS when loading a non-canonical IST
commit50fcc7cbb67213621bbe69eafff5e4625f418b4c
authorGareth Webb <gareth.webb@umbralsoftware.co.uk>
Sat, 19 Feb 2022 18:15:56 +0000 (19 18:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2022 10:50:15 +0000 (15 11:50 +0100)
tree8694ecb5323900812d09957faf70dabd6a638792
parent991ec97625e1281ba22bd81426a7226a76baf60a
target/i386: Throw a #SS when loading a non-canonical IST

Loading a non-canonical address into rsp when handling an interrupt or
performing a far call should raise a #SS not a #GP.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/870
Signed-off-by: Gareth Webb <gareth.webb@umbralsoftware.co.uk>
Message-Id: <164529651121.25406.15337137068584246397-0@git.sr.ht>
[Move get_pg_mode to seg_helper.c for user-mode emulators. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/seg_helper.c
target/i386/tcg/sysemu/excp_helper.c