diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-27 23:30:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-27 23:30:06 +0000 |
commit | aad13cd1311ad099a0471c062a2a38597e1742d6 (patch) | |
tree | b3d9bceec10a7e5ddf1740e489957e9c033fd92d | |
parent | a513fe19ac4896a09c6c338204d76c39e652451f (diff) |
segment defines
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@195 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | cpu-i386.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpu-i386.h b/cpu-i386.h index fbe7965b4f..51b1753947 100644 --- a/cpu-i386.h +++ b/cpu-i386.h @@ -48,6 +48,23 @@ #define R_FS 4 #define R_GS 5 +/* segment descriptor fields */ +#define DESC_G_MASK (1 << 23) +#define DESC_B_MASK (1 << 22) +#define DESC_AVL_MASK (1 << 20) +#define DESC_P_MASK (1 << 15) +#define DESC_DPL_SHIFT 13 +#define DESC_S_MASK (1 << 12) +#define DESC_TYPE_SHIFT 8 +#define DESC_A_MASK (1 << 8) + +#define DESC_CS_MASK (1 << 11) +#define DESC_C_MASK (1 << 10) +#define DESC_R_MASK (1 << 9) + +#define DESC_E_MASK (1 << 10) +#define DESC_W_MASK (1 << 9) + /* eflags masks */ #define CC_C 0x0001 #define CC_P 0x0004 |