target/i386: tcg: fix segment register offsets for 16-bit TSS
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Jun 2021 13:31:38 +0000 (15:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Jun 2021 11:47:08 +0000 (13:47 +0200)
commit28f6aa1178581c3647819e1abc4905899d97d3a2
tree8ec87f28c83963d62b524ffb2bd1426127c9e813
parent29c3d213f4ad69688638330728cff1a8769d7415
target/i386: tcg: fix segment register offsets for 16-bit TSS

The TSS offsets in the manuals have only 2-byte slots for the
segment registers.  QEMU incorrectly uses 4-byte slots, so
that SS overlaps the LDT selector.

Resolves: #382
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/seg_helper.c