Device-assignment: introduce add_assigned_devices()
[qemu-kvm/fedora.git] / target-ia64 / op_helper.c
blob78b32f9621e59fb9dc6bec82b9ea00c124522b40
1 /*
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
14 * more details.
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.
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
24 #include "cpu.h"
25 #include "exec-all.h"
27 #include "qemu-kvm.h"
28 #include "qemu-common.h"
30 CPUState *cpu_ia64_init(const char *cpu_model)
32 CPUState *env;
33 env = qemu_mallocz(sizeof(CPUState));
34 if (!env)
35 return NULL;
36 cpu_exec_init(env);
37 cpu_reset(env);
38 if (kvm_enabled()) {
39 kvm_qemu_init_env(env);
40 kvm_init_vcpu(env);
42 return env;
45 void cpu_reset(CPUIA64State *env)
49 static inline void set_feature(CPUIA64State *env, int feature)
53 void cpu_ia64_set_model(CPUIA64State *env, uint32_t id)
57 void cpu_ia64_close(CPUIA64State *env)
59 free(env);
62 extern int semihosting_enabled;
64 void switch_mode(CPUState *env, int mode)
68 /* Handle a CPU exception. */
69 void do_interrupt(CPUIA64State *env)
71 if (kvm_enabled()) {
72 printf("%s: unexpect\n", __FUNCTION__);
73 exit(-1);
77 int cpu_ia64_handle_mmu_fault (CPUState *env, target_ulong address,
78 int access_type, int is_user, int is_softmmu)
80 return 1;
83 target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
85 return -1;
88 void cpu_dump_state(CPUState *env, FILE *f,
89 int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
90 int flags)
92 return;
95 void tlb_fill (target_ulong addr, int is_write, int is_user, void *retaddr)
97 return;