From b6b2f0ebb3b8e32279b493392bb1e64cb2fc4d33 Mon Sep 17 00:00:00 2001 From: Zhi-Gang Liu Date: Wed, 15 Apr 2015 02:33:09 +0000 Subject: [PATCH] Address minor issues in Julian's last review. For TILEGX only. By: Zhi-Gang Liu git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15094 --- coregrind/m_debuglog.c | 4 +++- coregrind/m_libcassert.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c index 76adccce42..5c2c96cafd 100644 --- a/coregrind/m_debuglog.c +++ b/coregrind/m_debuglog.c @@ -508,13 +508,15 @@ static UInt local_sys_getpid ( void ) : "$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 */ diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c index 365b50377a..2f8026c74b 100644 --- a/coregrind/m_libcassert.c +++ b/coregrind/m_libcassert.c @@ -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" \ -- 2.47.3