diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-18 22:49:57 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-18 22:49:57 +0000 |
commit | 985a19d6d1d7ab3705bf42698cc95abfbbfa24f8 (patch) | |
tree | dfeaf5bbfface7c1211937494a3a28045fe3a63e /target-ppc/op_helper.c | |
parent | 3f5dcc340c1e4fa8a49066e30cf980bafdb3ecf4 (diff) |
PowerPC merge (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@566 c046a42c-6fe2-441c-8c8c-71466251a162
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 */ |