From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O66GI-0006rR-9a for qemu-devel@nongnu.org; Sun, 25 Apr 2010 14:08:58 -0400 Received: from [140.186.70.92] (port=47080 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O66GH-0006q1-0k for qemu-devel@nongnu.org; Sun, 25 Apr 2010 14:08:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O66GF-00060H-KA for qemu-devel@nongnu.org; Sun, 25 Apr 2010 14:08:56 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:62053) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O66GF-00060C-CY for qemu-devel@nongnu.org; Sun, 25 Apr 2010 14:08:55 -0400 Received: by pvg4 with SMTP id 4so207591pvg.4 for ; Sun, 25 Apr 2010 11:08:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1272218485-12465-2-git-send-email-rth@twiddle.net> References: <1272218485-12465-1-git-send-email-rth@twiddle.net> <1272218485-12465-2-git-send-email-rth@twiddle.net> Date: Sun, 25 Apr 2010 21:08:54 +0300 Message-ID: From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] Re: [PATCH 2/2] linux-user: Fix Sparc64 syscall returns. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org Thanks, applied. On 4/25/10, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > linux-user/main.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/linux-user/main.c b/linux-user/main.c > index b394c00..71a1b67 100644 > --- a/linux-user/main.c > +++ b/linux-user/main.c > @@ -940,7 +940,8 @@ static void flush_windows(CPUSPARCState *env) > > void cpu_loop (CPUSPARCState *env) > { > - int trapnr, ret; > + int trapnr; > + abi_long ret; > target_siginfo_t info; > > while (1) { > @@ -958,7 +959,7 @@ void cpu_loop (CPUSPARCState *env) > env->regwptr[0], env->regwptr[1], > env->regwptr[2], env->regwptr[3], > env->regwptr[4], env->regwptr[5]); > - if ((unsigned int)ret >= (unsigned int)(-515)) { > + if ((abi_ulong)ret >= (abi_ulong)(-515)) { > #if defined(TARGET_SPARC64) && !defined(TARGET_ABI32) > env->xcc |= PSR_CARRY; > #else > > -- > 1.6.6.1 > >