tests/docker: remove travis container
[qemu/ar7.git] / include / qemu / cacheflush.h
blobae20bcda733de7004be685cb3a78cce393672375
1 /*
2 * Flush the host cpu caches.
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
8 #ifndef QEMU_CACHEFLUSH_H
9 #define QEMU_CACHEFLUSH_H
11 /**
12 * flush_idcache_range:
13 * @rx: instruction address
14 * @rw: data address
15 * @len: length to flush
17 * Flush @len bytes of the data cache at @rw and the icache at @rx
18 * to bring them in sync. The two addresses may be different virtual
19 * mappings of the same physical page(s).
22 #if defined(__i386__) || defined(__x86_64__) || defined(__s390__)
24 static inline void flush_idcache_range(uintptr_t rx, uintptr_t rw, size_t len)
26 /* icache is coherent and does not require flushing. */
29 #else
31 void flush_idcache_range(uintptr_t rx, uintptr_t rw, size_t len);
33 #endif
35 #endif /* QEMU_CACHEFLUSH_H */