aboutsummaryrefslogtreecommitdiff
path: root/hw/ipf.c
diff options
context:
space:
mode:
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>2007-12-18 14:07:38 +0100
committerAvi Kivity <avi@qumranet.com>2007-12-18 18:34:16 +0200
commitf067512c0616d88db2fcd6004d03e41548fa1ab2 (patch)
treef47cffaf51adbed5c245adc1143b444635a8c878 /hw/ipf.c
parentkvm: libkvm: fix NULL pointer dereference in kvm_destroy_phys_mem() (diff)
downloadqemu-kvm-f067512c0616d88db2fcd6004d03e41548fa1ab2.tar.gz
qemu-kvm-f067512c0616d88db2fcd6004d03e41548fa1ab2.tar.bz2
qemu-kvm-f067512c0616d88db2fcd6004d03e41548fa1ab2.zip
Sync icache for more architectures
A ia64 patch introduced kvm_sync_icache within a ifdef __ia64__, but the concept of split caches is not bound to ia64. This patch replaces the the call to kvm_synch_icache by the flush_icache_range function that is already available in qemu for ia64 and ppc (noop for x86). The call now depends on USE_KVM. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'hw/ipf.c')
-rw-r--r--hw/ipf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/hw/ipf.c b/hw/ipf.c
index 03df73d30..cf76f358a 100644
--- a/hw/ipf.c
+++ b/hw/ipf.c
@@ -273,17 +273,6 @@ static void pc_init_ne2k_isa(NICInfo *nd, qemu_irq *pic)
#ifdef USE_KVM
extern kvm_context_t kvm_context;
extern int kvm_allowed;
-
-void kvm_sync_icache(unsigned long address, int len)
-{
- int l;
-
- for(l = 0; l < (len + 32); l += 32)
- __ia64_fc(address + l);
-
- ia64_sync_i();
- ia64_srlz_i();
-}
#endif
static void main_cpu_reset(void *opaque)