x86: Set the effective base of the TSS when initializing a process.
authorGabe Black <gabe.black@gmail.com>
Sun, 13 Dec 2020 10:14:03 +0000 (02:14 -0800)
committerGabe Black <gabe.black@gmail.com>
Wed, 16 Dec 2020 06:44:36 +0000 (06:44 +0000)
commit2a0867f51c996d408fbd970b78d08efd23c8bf10
tree6303a9af0d2517fd319cdc5c78357c70f1a276f7
parent4110ee2088388a64d3129b88c4b340446c158491
x86: Set the effective base of the TSS when initializing a process.

For some segments, there are two base registers. One is the
architecturally visible base, and the other is the effective base used
when actually referencing memory relative to that segment. The process
initialization code was setting the architecturally visible base,
presumably because that's the value used by KVM, but was setting the
effective base to zero.

Change-Id: I06e079f24fa63f0051268437bf00c14578f62612
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38488
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/process.cc