x86: Add bitfields which can gather/scatter bases and limits.
authorGabe Black <gabeblack@google.com>
Tue, 30 Jan 2018 01:49:07 +0000 (17:49 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 15 Mar 2018 00:54:42 +0000 (00:54 +0000)
commit8b66b56b12664211e76fc1bc880f1a13cb88bc06
tree268a90b07c4dd25ff8406a89fe0d6a5c06fc7417
parent497ebfe98578b71d22f979b848c4b873f05ec6ee
x86: Add bitfields which can gather/scatter bases and limits.

Add bitfields which can gather/scatter base and limit fields within
"normal" segment descriptors, and in TSS descriptors which have the
same bitfields in the same positions for those two values.

This centralizes the code which manages those bitfields and makes it
less likely that a local implementation will be buggy.

Change-Id: I9809aa626fc31388595c3d3b225c25a0ec6a1275
Reviewed-on: https://gem5-review.googlesource.com/7661
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/arch/x86/isa/microops/regop.isa
src/arch/x86/process.cc
src/arch/x86/regs/misc.hh
src/arch/x86/system.cc