mips: adding MIPS64LE support to Valgrind
Necessary changes to Valgrind to support MIPS64LE on Linux.
Minor cleanup/style changes embedded in the patch as well.
The change corresponds to r2687 in VEX.
Patch written by Dejan Jevtic and Petar Jovanovic.
More information about this issue:
https://bugs.kde.org/show_bug.cgi?id=313267
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13292 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/pub_core_basics.h b/coregrind/pub_core_basics.h
index 4431b38..a086986 100644
--- a/coregrind/pub_core_basics.h
+++ b/coregrind/pub_core_basics.h
@@ -62,6 +62,8 @@
# include "libvex_guest_s390x.h"
#elif defined(VGA_mips32)
# include "libvex_guest_mips32.h"
+#elif defined(VGA_mips64)
+# include "libvex_guest_mips64.h"
#else
# error Unknown arch
#endif
@@ -115,6 +117,11 @@
UInt r31; /* Return address of the last subroutine call */
UInt r28;
} MIPS32;
+ struct {
+ ULong r30; /* Stack frame pointer or subroutine variable */
+ ULong r31; /* Return address of the last subroutine call */
+ ULong r28;
+ } MIPS64;
} misc;
}
UnwindStartRegs;