summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-09-18 05:53:15 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-09-18 05:53:15 +0000
commitcc581e0784af2354acc9c688d37c34bd137112ec (patch)
tree84827a9059dac681bd32743da074cb93fff57307 /target-mips
parent171fc0b7ff56c7fd5ebff5761d9352fc206da462 (diff)
downloadqemu-cc581e0784af2354acc9c688d37c34bd137112ec.tar.gz
qemu-cc581e0784af2354acc9c688d37c34bd137112ec.tar.bz2
qemu-cc581e0784af2354acc9c688d37c34bd137112ec.zip
MIPS: fix yield handling
The parameter for yield should be handled as a signed integer for the comparisons to have any effect. This also avoids a gcc warning with -Wtype-limits. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/op_helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index 50c65bdc3b..41abd575f9 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -1598,8 +1598,10 @@ void helper_fork(target_ulong arg1, target_ulong arg2)
// TODO: store to TC register
}
-target_ulong helper_yield(target_ulong arg1)
+target_ulong helper_yield(target_ulong arg)
{
+ target_long arg1 = arg;
+
if (arg1 < 0) {
/* No scheduling policy implemented. */
if (arg1 != -2) {