OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb9fb69
)
crisv10: Always clear the V and C flags on btst.
author
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Mon, 15 Feb 2010 10:20:30 +0000
(11:20 +0100)
committer
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Mon, 15 Feb 2010 10:20:30 +0000
(11:20 +0100)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-cris/op_helper.c
patch
|
blob
|
history
diff --git
a/target-cris/op_helper.c
b/target-cris/op_helper.c
index
b44b932
..
a60da94
100644
(file)
--- a/
target-cris/op_helper.c
+++ b/
target-cris/op_helper.c
@@
-276,6
+276,8
@@
uint32_t helper_btst(uint32_t t0, uint32_t t1, uint32_t ccs)
/* Clear the X, N and Z flags. */
ccs = ccs & ~(X_FLAG | N_FLAG | Z_FLAG);
+ if (env->pregs[PR_VR] < 32)
+ ccs &= ~(V_FLAG | C_FLAG);
/* Set the N and Z flags accordingly. */
ccs |= (bset << 3) | (fz << 2);
return ccs;