From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Cc: blauwirbel@gmail.com
Subject: [Qemu-devel] [PATCH 2/2] linux-user: Fix Sparc64 syscall returns.
Date: Sun, 25 Apr 2010 11:01:25 -0700 [thread overview]
Message-ID: <1272218485-12465-2-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1272218485-12465-1-git-send-email-rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
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
next prev parent reply other threads:[~2010-04-25 18:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-25 18:01 [Qemu-devel] [PATCH 1/2] target-sparc: Fix -singlestep Richard Henderson
2010-04-25 18:01 ` Richard Henderson [this message]
2010-04-25 18:08 ` [Qemu-devel] Re: [PATCH 2/2] linux-user: Fix Sparc64 syscall returns Blue Swirl
2010-04-25 18:11 ` [Qemu-devel] Re: [PATCH 1/2] target-sparc: Fix -singlestep Blue Swirl
2010-04-26 17:17 ` [Qemu-devel] [PATCH] " Richard Henderson
2010-04-26 17:27 ` [Qemu-devel] " Blue Swirl
2010-04-26 17:27 ` [Qemu-devel] [PATCH] linux-user: Fix sparc32plus stat64 syscalls Richard Henderson
2010-04-26 17:34 ` [Qemu-devel] " Blue Swirl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1272218485-12465-2-git-send-email-rth@twiddle.net \
--to=rth@twiddle.net \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).