summaryrefslogtreecommitdiff
path: root/emu/Linux/segflush-power.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2009-06-12 18:34:15 +0000
committerCharles.Forsyth <devnull@localhost>2009-06-12 18:34:15 +0000
commitd2caef7bfa67181341fe2f1cbf68884ae6e45639 (patch)
tree1a2ebabf87a883d4886351007af33aa6ca5fd4ed /emu/Linux/segflush-power.c
parentf4ab6bd1adbb9bff11da6885084de2ed31f2a415 (diff)
20090612-1932
Diffstat (limited to 'emu/Linux/segflush-power.c')
-rw-r--r--emu/Linux/segflush-power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emu/Linux/segflush-power.c b/emu/Linux/segflush-power.c
index 8fa58189..0804d686 100644
--- a/emu/Linux/segflush-power.c
+++ b/emu/Linux/segflush-power.c
@@ -16,7 +16,7 @@ segflush(void *a, ulong n)
// cache blocks are often eight words (32 bytes) long, sometimes 16 bytes.
// need to determine it dynamically?
- for (p = (ulong *)((ulong)a & ~3UL); (char *)p < (char *)a + n; p++)
+ for (p = (ulong *)((ulong)a & ~7UL); (char *)p < (char *)a + n; p++)
__asm__("dcbst 0,%0\n\t" // not dcbf, which writes back, then invalidates
"icbi 0,%0\n\t"
: // no output