2 * op_helper.c: IA64 emulation cpu micro-operations helpers for qemu.
4 * Copyright (c) 2007 Intel Corporation
5 * Zhang Xiantao <xiantao.zhang@intel.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18 * Place - Suite 330, Boston, MA 02111-1307 USA.
28 #include "qemu-common.h"
30 CPUState
*cpu_ia64_init(char *cpu_model
){
32 env
= qemu_mallocz(sizeof(CPUState
));
38 kvm_qemu_init_env(env
);
39 env
->ready_for_interrupt_injection
= 1;
40 kvm_init_new_ap(env
->cpu_index
, env
);
45 void cpu_reset(CPUIA64State
*env
)
50 static inline void set_feature(CPUIA64State
*env
, int feature
)
55 void cpu_ia64_set_model(CPUIA64State
*env
, uint32_t id
)
59 void cpu_ia64_close(CPUIA64State
*env
)
65 extern int semihosting_enabled
;
68 void switch_mode(CPUState
*env
, int mode
)
72 /* Handle a CPU exception. */
73 void do_interrupt(CPUIA64State
*env
)
76 printf("%s: unexpect\n", __FUNCTION__
);
83 int cpu_ia64_handle_mmu_fault (CPUState
*env
, target_ulong address
,
84 int access_type
, int is_user
, int is_softmmu
)
89 target_ulong
cpu_get_phys_page_debug(CPUState
*env
, target_ulong addr
)
95 void cpu_dump_state(CPUState
*env
, FILE *f
,
96 int (*cpu_fprintf
)(FILE *f
, const char *fmt
, ...),
101 void tlb_fill (target_ulong addr
, int is_write
, int is_user
, void *retaddr
)