|
From: <sv...@va...> - 2015-04-15 02:33:16
|
Author: zliu
Date: Wed Apr 15 03:33:09 2015
New Revision: 15094
Log:
Address minor issues in Julian's last review.
For TILEGX only.
By: Zhi-Gang Liu
Modified:
trunk/coregrind/m_debuglog.c
trunk/coregrind/m_libcassert.c
Modified: trunk/coregrind/m_debuglog.c
==============================================================================
--- trunk/coregrind/m_debuglog.c (original)
+++ trunk/coregrind/m_debuglog.c Wed Apr 15 03:33:09 2015
@@ -508,13 +508,15 @@
: "$2" );
return (UInt)(__res);
}
+
#elif defined(VGP_tilegx_linux)
+
static UInt local_sys_write_stderr ( const HChar* buf, Int n )
{
volatile Long block[2];
block[0] = (Long)buf;
block[1] = n;
- ULong __res = 0;
+ Long __res = 0;
__asm__ volatile (
"movei r0, 2 \n\t" /* stderr */
"move r1, %1 \n\t" /* buf */
Modified: trunk/coregrind/m_libcassert.c
==============================================================================
--- trunk/coregrind/m_libcassert.c (original)
+++ trunk/coregrind/m_libcassert.c Wed Apr 15 03:33:09 2015
@@ -227,7 +227,7 @@
}
#elif defined(VGP_tilegx_linux)
# define GET_STARTREGS(srP) \
- { UInt pc, sp, fp, ra; \
+ { ULong pc, sp, fp, ra; \
__asm__ __volatile__( \
"move r8, lr \n" \
"jal 0f \n" \
|