1 #ifndef GRUB_MACHINE_EMU
2 #error "This source is only meant for grub-emu platform"
5 #if defined(__i386__) || defined(__x86_64__)
6 /* Nothing is necessary. */
7 #elif defined(__sparc__)
8 #include "../sparc64/cache.S"
9 #elif defined(__mips__)
10 /* On MIPS we must go through standard functions. */
11 #include <grub/symbol.h>
13 FUNCTION (grub_cpu_flush_cache)
14 FUNCTION (grub_arch_sync_caches)
17 lui $t0, %hi(_flush_cache)
18 addui $t0, $t0, %lo(_flush_cache)
24 #elif defined(__powerpc__)
25 #include "../powerpc/cache.S"
27 #error "No target cpu type is defined"