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>
This commit is contained in:
Blue Swirl 2010-09-18 05:53:15 +00:00
parent d62d28630d
commit 1c7242da85

View file

@ -1598,8 +1598,10 @@ void helper_fork(target_ulong arg1, target_ulong arg2)
// TODO: store to TC register // 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) { if (arg1 < 0) {
/* No scheduling policy implemented. */ /* No scheduling policy implemented. */
if (arg1 != -2) { if (arg1 != -2) {