Clean up KVM/QEMU interaction
[qemu-kvm/fedora.git] / target-ia64 / cpu.h
blob97358eec920a96ddf436da6ea0e497ab96cf0830
1 /*
2 * IA64 virtual CPU header
4 * Copyright (c) 2003 Fabrice Bellard
6 * Copyright (c) 2007 Intel Corporation
7 * Zhang xiantao <xiantao.zhang@intel.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef CPU_IA64_H
24 #define CPU_IA64_H
25 #include "config.h"
26 #include "ia64intrin.h"
28 #include<string.h>
29 #include<stdio.h>
31 #define TARGET_LONG_BITS 64
33 #define TARGET_PAGE_BITS 16
35 #define ELF_MACHINE EM_IA_64
37 #define NB_MMU_MODES 2
38 #define CPU_PAL_HALT 1
39 #define HF_HALTED_MASK (1 << CPU_PAL_HALT)
41 #include "cpu-defs.h"
43 #include "softfloat.h"
44 typedef struct CPUIA64State {
45 CPU_COMMON;
46 /* exception/interrupt handling */
47 jmp_buf jmp_env;
48 int exception_index;
50 int interrupt_request;
51 int user_mode_only;
52 uint32_t hflags;
54 uint8_t ready_for_interrupt_injection;
56 } CPUIA64State;
58 #define CPUState CPUIA64State
59 #define cpu_gen_code cpu_ia64_gen_code
60 #define cpu_init cpu_ia64_init
61 #define cpu_signal_handler cpu_ia64_signal_handler
63 struct CPUIA64State *env;
64 int cpu_get_pic_interrupt(CPUIA64State *s);
65 int cpu_exec(CPUState *env1);
66 void cpu_dump_state(CPUState *env, FILE *f,
67 int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
68 int flags);
70 CPUState *cpu_ia64_init(char * cpu_model);
71 static inline int cpu_mmu_index (CPUState *env)
73 return 0;
76 #include "cpu-all.h"
78 #endif