]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Including additional header file to syswrap-linux.c to see VG_(get_SP).
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 3 Jul 2012 21:02:42 +0000 (21:02 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 3 Jul 2012 21:02:42 +0000 (21:02 +0000)
Removing a warning of 'implicit declaration of function vgPlain_get_SP' when
compiled for MIPS. Done by including an appropriate header file.
Also, minor style issue correction for  #define PSRAn_BE(n,s,t,a) macro.

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

coregrind/m_syswrap/priv_types_n_macros.h
coregrind/m_syswrap/syswrap-linux.c

index 9040148cff07fd660e73e0f7a5fe302371d19889..609c9089594307b743fa243666b8e7d3bf7310fd 100644 (file)
@@ -509,10 +509,10 @@ static inline UWord getERR ( SyscallStatus* st ) {
    in memory at the highest address.
 */
 #if (defined(VGP_mips32_linux) && defined (_MIPSEB))
- #define PSRAn_BE(n,s,t,a)                                         \
-    do {                                                           \
+ #define PSRAn_BE(n,s,t,a)                                        \
+    do {                                                          \
       Addr next = layout->s_arg##n + sizeof(UWord) +              \
-                  VG_(threads)[tid].arch.vex.guest_r29;           \
+                  VG_(get_SP)(tid);                               \
       vg_assert(sizeof(t) <= sizeof(UWord));                      \
       VG_(tdict).track_pre_mem_read(                              \
          Vg_CoreSysCallArgInMem, tid, s"("#a")",                  \
index d82b1f0fbbea268b2957ad451774039196b92a67..ce716782d52541d258f94b6cd086a0118bde9c4e 100644 (file)
@@ -47,6 +47,7 @@
 #include "pub_core_libcprint.h"
 #include "pub_core_libcproc.h"
 #include "pub_core_libcsignal.h"
+#include "pub_core_machine.h"      // VG_(get_SP)
 #include "pub_core_mallocfree.h"
 #include "pub_core_tooliface.h"
 #include "pub_core_options.h"