|
From: <sv...@va...> - 2012-07-03 21:02:48
|
petarj 2012-07-03 22:02:42 +0100 (Tue, 03 Jul 2012)
New Revision: 12707
Log:
Including additional header file to syswrap-linux.c to see VG_(get_SP).
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.
Modified files:
trunk/coregrind/m_syswrap/priv_types_n_macros.h
trunk/coregrind/m_syswrap/syswrap-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-linux.c (+1 -0)
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-linux.c 2012-07-03 21:45:00 +01:00 (rev 12706)
+++ trunk/coregrind/m_syswrap/syswrap-linux.c 2012-07-03 22:02:42 +01:00 (rev 12707)
@@ -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"
Modified: trunk/coregrind/m_syswrap/priv_types_n_macros.h (+3 -3)
===================================================================
--- trunk/coregrind/m_syswrap/priv_types_n_macros.h 2012-07-03 21:45:00 +01:00 (rev 12706)
+++ trunk/coregrind/m_syswrap/priv_types_n_macros.h 2012-07-03 22:02:42 +01:00 (rev 12707)
@@ -509,10 +509,10 @@
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")", \
|