diff options
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r-- | target-ppc/op_helper.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 5d02dfabe7..a0e9360282 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -349,9 +349,13 @@ void do_fnabs (void) } /* Instruction cache invalidation helper */ +#define ICACHE_LINE_SIZE 32 + void do_icbi (void) { - // tb_invalidate_page(T0); + /* Invalidate one cache line */ + T0 &= ~(ICACHE_LINE_SIZE - 1); + tb_invalidate_page_range(T0, T0 + ICACHE_LINE_SIZE); } /* TLB invalidation helpers */ |