diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-22 15:23:14 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-22 15:23:14 +0000 |
commit | dab2ed991a49678fbd4d45ff1b328340a77057df (patch) | |
tree | 0c587c5ef62faa0c3bf9b39a7ce9281c0a63e2b2 /cpu-i386.h | |
parent | e591824733ec698d92d1f09c2ffb9b86b799d6da (diff) |
better 16 bit code support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@38 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-i386.h')
-rw-r--r-- | cpu-i386.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpu-i386.h b/cpu-i386.h index 550e18387f..9125ecadc5 100644 --- a/cpu-i386.h +++ b/cpu-i386.h @@ -141,7 +141,7 @@ typedef struct SegmentDescriptorTable { typedef struct CPUX86State { /* standard registers */ uint32_t regs[8]; - uint32_t pc; /* cs_case + eip value */ + uint32_t eip; uint32_t eflags; /* emulator internal eflags handling */ @@ -392,10 +392,12 @@ void cpu_x86_load_seg(CPUX86State *s, int seg_reg, int selector); #define GEN_FLAG_CODE32_SHIFT 0 #define GEN_FLAG_ADDSEG_SHIFT 1 -#define GEN_FLAG_ST_SHIFT 2 +#define GEN_FLAG_SS32_SHIFT 2 +#define GEN_FLAG_ST_SHIFT 3 + int cpu_x86_gen_code(uint8_t *gen_code_buf, int max_code_size, - int *gen_code_size_ptr, uint8_t *pc_start, - int flags); + int *gen_code_size_ptr, + uint8_t *pc_start, uint8_t *cs_base, int flags); void cpu_x86_tblocks_init(void); #endif /* CPU_I386_H */ |