projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c04146
)
target-tricore: Fix check which was always false
author
Stefan Weil
<sw@weilnetz.de>
Sat, 21 Mar 2015 13:44:58 +0000
(14:44 +0100)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Sat, 4 Apr 2015 06:45:59 +0000
(09:45 +0300)
With a mask value of 0x00400000, the result will never be 1.
This fixes a Coverity warning.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target-tricore/op_helper.c
patch
|
blob
|
history
diff --git
a/target-tricore/op_helper.c
b/target-tricore/op_helper.c
index 220ec4a3c1a87e30cb22e810b5f1854f059a520e..9907e07e22dd4ad32e757d74f42cc1b4cc25bea6 100644
(file)
--- a/
target-tricore/op_helper.c
+++ b/
target-tricore/op_helper.c
@@
-2573,7
+2573,7
@@
void helper_rslcx(CPUTriCoreState *env)
/* CSU trap */
}
/* if (PCXI.UL == 1) then trap(CTYP); */
- if ((env->PCXI & MASK_PCXI_UL)
== 1
) {
+ if ((env->PCXI & MASK_PCXI_UL)
!= 0
) {
/* CTYP trap */
}
/* EA = {PCXI.PCXS, 6'b0, PCXI.PCXO, 6'b0}; */