aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/ipf.c7
-rw-r--r--qemu-kvm-ia64.c2
-rw-r--r--target-ia64/exec.h1
-rw-r--r--target-ia64/firmware.c3
-rw-r--r--target-ia64/firmware.h2
-rw-r--r--target-ia64/op_helper.c6
6 files changed, 13 insertions, 8 deletions
diff --git a/hw/ipf.c b/hw/ipf.c
index eb9aaecf8..e2b53eecb 100644
--- a/hw/ipf.c
+++ b/hw/ipf.c
@@ -387,7 +387,6 @@ static void ipf_init1(ram_addr_t ram_size, int vga_ram_size,
PCIBus *pci_bus;
int piix3_devfn = -1;
CPUState *env;
- NICInfo *nd;
qemu_irq *cpu_irq;
qemu_irq *i8259;
int page_size;
@@ -487,7 +486,7 @@ static void ipf_init1(ram_addr_t ram_size, int vga_ram_size,
kvm_ia64_copy_from_nvram_to_GFW(nvram_fd, g_fw_start);
close(nvram_fd);
}
- i = atexit(kvm_ia64_copy_from_GFW_to_nvram);
+ i = atexit((void *)kvm_ia64_copy_from_GFW_to_nvram);
if (i != 0)
fprintf(stderr, "cannot set exit function\n");
}
@@ -671,8 +670,8 @@ static void ipf_init_pci(ram_addr_t ram_size, int vga_ram_size,
QEMUMachine ipf_machine = {
.name = "itanium",
.desc = "Itanium Platform",
- .init = ipf_init_pci,
- .ram_require = VGA_RAM_SIZE + GFW_SIZE,
+ .init = (QEMUMachineInitFunc *)ipf_init_pci,
+ .ram_require = (ram_addr_t)(VGA_RAM_SIZE + GFW_SIZE),
.max_cpus = 255,
};
diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c
index f9e4b4b17..66e4232c9 100644
--- a/qemu-kvm-ia64.c
+++ b/qemu-kvm-ia64.c
@@ -8,9 +8,9 @@
#include <libkvm.h>
#include <pthread.h>
#include <sys/utsname.h>
+#include <sys/io.h>
-extern kvm_context_t kvm_context;
int kvm_arch_qemu_create_context(void)
{
diff --git a/target-ia64/exec.h b/target-ia64/exec.h
index 0e6b9e86a..37b64f716 100644
--- a/target-ia64/exec.h
+++ b/target-ia64/exec.h
@@ -45,7 +45,6 @@ void do_interrupt (CPUState *env);
void cpu_lock(void);
void cpu_unlock(void);
-void cpu_loop_exit(void);
static inline int cpu_halted(CPUState *env) {
/* handle exit of HALTED state */
diff --git a/target-ia64/firmware.c b/target-ia64/firmware.c
index 88fcaa874..87a817881 100644
--- a/target-ia64/firmware.c
+++ b/target-ia64/firmware.c
@@ -649,7 +649,8 @@ kvm_ia64_copy_from_nvram_to_GFW(unsigned long nvram_fd,
struct stat file_stat;
if ((fstat(nvram_fd, &file_stat) < 0) ||
(NVRAM_SIZE != file_stat.st_size) ||
- (read(nvram_fd, fw_start + NVRAM_OFFSET, NVRAM_SIZE) != NVRAM_SIZE))
+ (read(nvram_fd, (void *)(fw_start + NVRAM_OFFSET),
+ NVRAM_SIZE) != NVRAM_SIZE))
return -1;
return 0;
}
diff --git a/target-ia64/firmware.h b/target-ia64/firmware.h
index 47aaa1d8b..c1707ac8d 100644
--- a/target-ia64/firmware.h
+++ b/target-ia64/firmware.h
@@ -57,7 +57,7 @@ extern int kvm_ia64_build_hob(unsigned long memsize, unsigned long vcpus,
uint8_t *fw_start, unsigned long nvram_addr);
extern char *read_image(const char *filename, unsigned long *size);
-extern int kvm_ia64_copy_from_GFW_to_nvram();
+extern int kvm_ia64_copy_from_GFW_to_nvram(void);
extern int kvm_ia64_nvram_init(unsigned long type);
extern int kvm_ia64_copy_from_nvram_to_GFW(unsigned long nvram_fd,
const uint8_t *fw_start);
diff --git a/target-ia64/op_helper.c b/target-ia64/op_helper.c
index 78b32f962..d51525ac4 100644
--- a/target-ia64/op_helper.c
+++ b/target-ia64/op_helper.c
@@ -27,6 +27,12 @@
#include "qemu-kvm.h"
#include "qemu-common.h"
+void cpu_ia64_set_model(CPUIA64State *env, uint32_t id);
+void cpu_ia64_close(CPUIA64State *env);
+void switch_mode(CPUState *env, int mode);
+void do_interrupt(CPUIA64State *env);
+int cpu_ia64_handle_mmu_fault (CPUState *env, target_ulong address,
+ int access_type, int is_user, int is_softmmu);
CPUState *cpu_ia64_init(const char *cpu_model)
{
CPUState *env;