added PE to static CPU state (avoids flushing translated code when swiching between protected and real mode) - moved memory defs to cpu-all.h
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@504 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
773b93ee06
commit
65262d5738
@ -106,6 +106,11 @@
|
||||
#define HF_SS32_SHIFT 5
|
||||
/* zero base for DS, ES and SS */
|
||||
#define HF_ADDSEG_SHIFT 6
|
||||
/* copy of CR0.PE (protected mode) */
|
||||
#define HF_PE_SHIFT 7
|
||||
#define HF_TF_SHIFT 8 /* must be same as eflags */
|
||||
#define HF_IOPL_SHIFT 12 /* must be same as eflags */
|
||||
#define HF_VM_SHIFT 17 /* must be same as eflags */
|
||||
|
||||
#define HF_CPL_MASK (3 << HF_CPL_SHIFT)
|
||||
#define HF_SOFTMMU_MASK (1 << HF_SOFTMMU_SHIFT)
|
||||
@ -113,6 +118,7 @@
|
||||
#define HF_CS32_MASK (1 << HF_CS32_SHIFT)
|
||||
#define HF_SS32_MASK (1 << HF_SS32_SHIFT)
|
||||
#define HF_ADDSEG_MASK (1 << HF_ADDSEG_SHIFT)
|
||||
#define HF_PE_MASK (1 << HF_PE_SHIFT)
|
||||
|
||||
#define CR0_PE_MASK (1 << 0)
|
||||
#define CR0_TS_MASK (1 << 3)
|
||||
@ -391,9 +397,6 @@ int cpu_x86_signal_handler(int host_signum, struct siginfo *info,
|
||||
|
||||
/* MMU defines */
|
||||
void cpu_x86_init_mmu(CPUX86State *env);
|
||||
extern int phys_ram_size;
|
||||
extern int phys_ram_fd;
|
||||
extern uint8_t *phys_ram_base;
|
||||
extern int a20_enabled;
|
||||
|
||||
void cpu_x86_set_a20(CPUX86State *env, int a20_state);
|
||||
|
Loading…
Reference in New Issue
Block a user