ia64/xen-unstable

changeset 11138:60eacb336e35

[qemu/ia64] Sync ID cache only guest do DMA read.
Fix ID cache sync time. Only when guest does DMA
read, ID sync cache is needed for VTi.

From: Zhang, Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author chris@kneesaa.uk.xensource.com
date Tue Aug 15 13:53:18 2006 +0100 (2006-08-15)
parents d853acd5ed58
children 6dcd85ea232e
files tools/ioemu/target-i386-dm/exec-dm.c
line diff
     1.1 --- a/tools/ioemu/target-i386-dm/exec-dm.c	Tue Aug 15 11:36:10 2006 +0100
     1.2 +++ b/tools/ioemu/target-i386-dm/exec-dm.c	Tue Aug 15 13:53:18 2006 +0100
     1.3 @@ -449,6 +449,9 @@ void cpu_physical_memory_rw(target_phys_
     1.4                  /* RAM case */
     1.5                  ptr = phys_ram_base + addr1;
     1.6                  memcpy(ptr, buf, l);
     1.7 +#ifdef __ia64__
     1.8 +                sync_icache((unsigned long)ptr, l);
     1.9 +#endif 
    1.10              }
    1.11          } else {
    1.12              if (io_index) {
    1.13 @@ -473,9 +476,6 @@ void cpu_physical_memory_rw(target_phys_
    1.14                  ptr = phys_ram_base + (pd & TARGET_PAGE_MASK) + 
    1.15                      (addr & ~TARGET_PAGE_MASK);
    1.16                  memcpy(buf, ptr, l);
    1.17 -#ifdef __ia64__
    1.18 -                sync_icache((unsigned long)ptr, l);
    1.19 -#endif 
    1.20              } else {
    1.21                  /* unreported MMIO space */
    1.22                  memset(buf, 0xff, len);