From: Julian Seward Date: Thu, 30 Jun 2005 12:11:19 +0000 (+0000) Subject: Restrict assertion to cache lines we know we need. X-Git-Tag: svn/VALGRIND_3_0_0~250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd1ddc2f74cd9c4ba0d3f4dfde6c3fc3f78abd42;p=thirdparty%2Fvalgrind.git Restrict assertion to cache lines we know we need. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4068 --- diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c index 50617868ad..023469cc7b 100644 --- a/coregrind/m_transtab.c +++ b/coregrind/m_transtab.c @@ -333,8 +333,8 @@ static void invalidate_icache ( void *ptr, Int nbytes ) Addr cls = VG_(cache_line_size_ppc32); Addr addr; - /* Surely no real cache would have a different line size? */ - vg_assert(cls == 16 || cls == 32 || cls == 64 || cls == 128); + /* Stay sane .. */ + vg_assert(cls == 32 || cls == 128); startaddr &= ~(cls - 1); for (addr = startaddr; addr < endaddr; addr += cls)