arch-x86: Granularity bit and segment limit
authorMaximilian Stein <maximilian.stein@tu-dresden.de>
Mon, 29 Jan 2018 11:21:32 +0000 (12:21 +0100)
committerChristian Menard <christian.menard@tu-dresden.de>
Tue, 30 Jan 2018 09:52:13 +0000 (09:52 +0000)
commit3e52d9fb3328258139f3523175d28ae8f11af702
tree41340b7487e2aae28167a68cd0e1b9a44b43e3fb
parent89f2871168bcd2a69f3edc2e9f12f3bc66101128
arch-x86: Granularity bit and segment limit

If set, the granularity bit indicates that the segment limit of segment
descriptors shall be interpreted as number of 4K blocks rather than
bytes.

The high part (bit 48 to 51) of segment descriptor limits is only 4 bits
wide while the low part (bit 0 to 15) spans 16 bits.

Change-Id: Ie386224ca815275fdb31498fe68310ed9c62cc87
Reviewed-on: https://gem5-review.googlesource.com/7601
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/arch/x86/system.cc