projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d62d286
)
MIPS: fix yield handling
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000
(
05:53
+0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000
(
05:53
+0000)
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>
target-mips/op_helper.c
patch
|
blob
|
history
diff --git
a/target-mips/op_helper.c
b/target-mips/op_helper.c
index 50c65bdc3b699894a029a8e7145939bede3cc455..41abd575f9ad55b75a87386836de182fc5059364 100644
(file)
--- 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 arg
1
)
+target_ulong helper_yield(target_ulong arg)
{
+ target_long arg1 = arg;
+
if (arg1 < 0) {
/* No scheduling policy implemented. */
if (arg1 != -2) {