diff options
author | Richard Henderson <rth@twiddle.net> | 2010-04-25 11:01:25 -0700 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 18:04:49 +0000 |
commit | 2cc2026063a7500670a76edd5ece59936ceec441 (patch) | |
tree | 619ba748a71e54238a52ad375b3adf585a5e0b6c | |
parent | 88bf79500b7659aa7978b445393479d76e9c0c9e (diff) |
linux-user: Fix Sparc64 syscall returns.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | 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 b394c00829..71a1b6737e 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 |