mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
it against latest xen-unstable.hg, both ia32 and x86-64 are not affected. Signed-off-by Ke Yu <ke.yu@intel.com> Signed-off-by Kevin Tian <kevin.tian@intel.com> Signed-off-by Nakajima Jun <nakajima.jun@intel.com> Signed-off-by Anthony Xu <anthony.xu@intel.com>
74 lines
2.1 KiB
C
74 lines
2.1 KiB
C
/*
|
|
* i386 virtual CPU header
|
|
*
|
|
* Copyright (c) 2003 Fabrice Bellard
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
#ifndef CPU_I386_H
|
|
#define CPU_I386_H
|
|
|
|
#include "config.h"
|
|
|
|
#ifdef TARGET_X86_64
|
|
#define TARGET_LONG_BITS 64
|
|
#else
|
|
#define TARGET_LONG_BITS 32
|
|
#endif
|
|
|
|
/* target supports implicit self modifying code */
|
|
#define TARGET_HAS_SMC
|
|
/* support for self modifying code even if the modified instruction is
|
|
close to the modifying instruction */
|
|
#define TARGET_HAS_PRECISE_SMC
|
|
|
|
#include "cpu-defs.h"
|
|
|
|
#if defined(__i386__) && !defined(CONFIG_SOFTMMU)
|
|
#define USE_CODE_COPY
|
|
#endif
|
|
|
|
/* Empty for now */
|
|
typedef struct CPUX86State {
|
|
uint32_t a20_mask;
|
|
int interrupt_request;
|
|
int send_event;
|
|
} CPUX86State;
|
|
|
|
#ifndef IN_OP_I386
|
|
void cpu_x86_outb(CPUX86State *env, int addr, int val);
|
|
void cpu_x86_outw(CPUX86State *env, int addr, int val);
|
|
void cpu_x86_outl(CPUX86State *env, int addr, int val);
|
|
int cpu_x86_inb(CPUX86State *env, int addr);
|
|
int cpu_x86_inw(CPUX86State *env, int addr);
|
|
int cpu_x86_inl(CPUX86State *env, int addr);
|
|
#endif
|
|
|
|
CPUX86State *cpu_x86_init(void);
|
|
int cpu_x86_exec(CPUX86State *s);
|
|
void cpu_x86_close(CPUX86State *s);
|
|
int cpu_get_pic_interrupt(CPUX86State *s);
|
|
/* MSDOS compatibility mode FPU exception support */
|
|
void cpu_set_ferr(CPUX86State *s);
|
|
|
|
#if defined(__i386__) || defined(__x86_64__)
|
|
#define TARGET_PAGE_BITS 12
|
|
#elif defined(__ia64__)
|
|
#define TARGET_PAGE_BITS 14
|
|
#endif
|
|
#include "cpu-all.h"
|
|
|
|
#endif /* CPU_I386_H */
|