PowerPC merge (Jocelyn Mayer)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@566 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-01-18 22:49:57 +00:00
parent 3f5dcc340c
commit 985a19d6d1
4 changed files with 27 additions and 10 deletions

View file

@ -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 */