x86/emul: Adjust comments in x86-types.h

x86_segment enumerates segments, not segment registers.  Adjust the comment to
make this clearer.

Fix a stray tab with the closing #endif.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2026-08-18 12:50:11 +01:00
1 parent e720df6b5a
commit fddeb0fd64
1 file changed
+5 -4
+5 -4
View File
@@ -16,9 +16,10 @@
#endif
/*
* Comprehensive enumeration of x86 segment registers. Various bits of code
* rely on this order (general purpose before system, tr at the beginning of
* system).
* x86 Segments.
*
* Various areas of code rely on this order (general purpose before system,
* tr at the beginning of system).
*/
enum x86_segment {
/* General purpose. Matches the SReg3 encoding in opcode/ModRM bytes. */
@@ -73,4 +74,4 @@ struct segment_register {
uint64_t base;
};
#endif /* X86_X86_TYPES_H */
#endif /* X86_X86_TYPES_H */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.