mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/emul: Rename the x86_seg_* system segments
These refer to the segments themsevles, not to the registers, even if there is a tight coupling between the two. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
fddeb0fd64
commit
72b05c267e
15 files changed
+99
-96
No files matched your search
@@ -173,7 +173,7 @@ static int fuzz_read(
|
||||
/* Reads expected for all user and system segments. */
|
||||
if ( is_x86_user_segment(seg) )
|
||||
assert(ctxt->addr_size == 64 || !(offset >> 32));
|
||||
else if ( seg == x86_seg_tr )
|
||||
else if ( seg == x86_seg_tss )
|
||||
/*
|
||||
* The TSS is special in that accesses below the segment base are
|
||||
* possible, as the Interrupt Redirection Bitmap starts 32 bytes
|
||||
@@ -362,7 +362,7 @@ static int fuzz_cmpxchg(
|
||||
if ( is_x86_user_segment(seg) )
|
||||
assert(ctxt->addr_size == 64 || !(offset >> 32));
|
||||
else
|
||||
assert((seg == x86_seg_gdtr || seg == x86_seg_ldtr) && !(offset >> 16));
|
||||
assert((seg == x86_seg_gdt || seg == x86_seg_ldt) && !(offset >> 16));
|
||||
|
||||
return maybe_fail(ctxt, "cmpxchg", true);
|
||||
}
|
||||
|
||||
@@ -559,7 +559,7 @@ static int read(
|
||||
{
|
||||
uint64_t value;
|
||||
|
||||
case x86_seg_gdtr:
|
||||
case x86_seg_gdt:
|
||||
/* Fake system segment type matching table index. */
|
||||
if ( (offset & 7) || (bytes > 8) )
|
||||
return X86EMUL_UNHANDLEABLE;
|
||||
@@ -579,7 +579,7 @@ static int read(
|
||||
memcpy(p_data, &value, bytes);
|
||||
return X86EMUL_OKAY;
|
||||
|
||||
case x86_seg_ldtr:
|
||||
case x86_seg_ldt:
|
||||
/* Fake user segment type matching table index. */
|
||||
if ( (offset & 7) || (bytes > 8) )
|
||||
return X86EMUL_UNHANDLEABLE;
|
||||
|
||||