diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-12-01 23:03:39 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-12-01 23:03:39 -0800 |
commit | dc6f96017135da7f3beae5055195de3cf8e47c6c (patch) | |
tree | b8fad747c652fe34db462bf585be4d184da02d6b /src/arch/x86/segmentregs.hh | |
parent | a548067b01ed99d4abc9483ca11466d3d9d4ceca (diff) | |
download | gem5-dc6f96017135da7f3beae5055195de3cf8e47c6c.tar.xz |
X86: Reorganize segmentation and implement segment selector movs.
--HG--
extra : convert_revision : 553c3ffeda1f5312cf02493f602e7d4ba2fe66e8
Diffstat (limited to 'src/arch/x86/segmentregs.hh')
-rw-r--r-- | src/arch/x86/segmentregs.hh | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/arch/x86/segmentregs.hh b/src/arch/x86/segmentregs.hh index e6079da6d..7473c5ea9 100644 --- a/src/arch/x86/segmentregs.hh +++ b/src/arch/x86/segmentregs.hh @@ -68,19 +68,18 @@ namespace X86ISA SEGMENT_REG_DS, SEGMENT_REG_FS, SEGMENT_REG_GS, - SEGMENT_REG_INT, - - NUM_SEGMENTREGS - }; - - enum SysSegmentRegIndex - { - SYS_SEGMENT_REG_LDTR, + SEGMENT_REG_HS, // Temporary descriptor + SEGMENT_REG_TSL, // Local descriptor table + SEGMENT_REG_TSG, // Global descriptor table + SEGMENT_REG_LS, // Flat segment + SEGMENT_REG_MS, // Emulation memory + // These shouldn't be used directly in a load or store since they + // are likely accessed in other ways in a real machine. For instance, + // they may be loaded into the temporary segment register on demand. SYS_SEGMENT_REG_TR, - SYS_SEGMENT_REG_GDTR, SYS_SEGMENT_REG_IDTR, - NUM_SYSSEGMENTREGS + NUM_SEGMENTREGS }; }; |