]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32: raise the limit for sizeof(TTEntryC)
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 6 May 2016 17:34:55 +0000 (17:34 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 6 May 2016 17:34:55 +0000 (17:34 +0000)
Raise limit for sizeof(TTEntryC) due to 8-byte alignement requirement for
ULong on mips32 platforms. It is a follow up to the same change on ppc32
(see r15875), and it un-breaks mips32-linux (broken with r15784).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15876

coregrind/m_transtab.c

index 3651381b6438c08145c3f88ecc51c87ae233d6bf..8e0ffb3c123fc0a202bdb286d60d33be755bc65a 100644 (file)
@@ -2451,8 +2451,8 @@ void VG_(init_tt_tc) ( void )
    } 
    else if (sizeof(HWord) == 4) {
       vg_assert(sizeof(TTEntryH) <= 20);
-#     if defined(VGP_ppc32_linux)
-      /* ppc32-linux is weird.  It thinks alignof(ULong) == 8 and so the
+#     if defined(VGP_ppc32_linux) || defined(VGP_mips32_linux)
+      /* On PPC32 and MIPS32 platforms alignof(ULong) == 8, so the
          structure is larger than on other 32 bit targets. */
       vg_assert(sizeof(TTEntryC) <= 96);
 #     else