Commit aad13cd1311ad099a0471c062a2a38597e1742d6

Authored by bellard
1 parent a513fe19

segment defines


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@195 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 17 additions and 0 deletions
cpu-i386.h
... ... @@ -48,6 +48,23 @@
48 48 #define R_FS 4
49 49 #define R_GS 5
50 50  
  51 +/* segment descriptor fields */
  52 +#define DESC_G_MASK (1 << 23)
  53 +#define DESC_B_MASK (1 << 22)
  54 +#define DESC_AVL_MASK (1 << 20)
  55 +#define DESC_P_MASK (1 << 15)
  56 +#define DESC_DPL_SHIFT 13
  57 +#define DESC_S_MASK (1 << 12)
  58 +#define DESC_TYPE_SHIFT 8
  59 +#define DESC_A_MASK (1 << 8)
  60 +
  61 +#define DESC_CS_MASK (1 << 11)
  62 +#define DESC_C_MASK (1 << 10)
  63 +#define DESC_R_MASK (1 << 9)
  64 +
  65 +#define DESC_E_MASK (1 << 10)
  66 +#define DESC_W_MASK (1 << 9)
  67 +
51 68 /* eflags masks */
52 69 #define CC_C 0x0001
53 70 #define CC_P 0x0004
... ...