[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 3/5] target-tricore: Fix check which was always fal
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 3/5] target-tricore: Fix check which was always false |
Date: |
Sat, 4 Apr 2015 10:10:24 +0300 |
From: Stefan Weil <address@hidden>
With a mask value of 0x00400000, the result will never be 1.
This fixes a Coverity warning.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
target-tricore/op_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c
index 220ec4a..9907e07 100644
--- 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}; */
--
2.1.4
- [Qemu-trivial] [PULL 0/5 for-2.3] Trivial patches for 2015-04-04, Michael Tokarev, 2015/04/04
- [Qemu-trivial] [PULL 4/5] gitignore: Ignore more .pod files., Michael Tokarev, 2015/04/04
- [Qemu-trivial] [PULL 2/5] target-i386: remove superfluous TARGET_HAS_SMC macro, Michael Tokarev, 2015/04/04
- [Qemu-trivial] [PULL 3/5] target-tricore: Fix check which was always false,
Michael Tokarev <=
- [Qemu-trivial] [PULL 1/5] pcspk: Fix I/O port name, Michael Tokarev, 2015/04/04
- [Qemu-trivial] [PULL 5/5] vhost: fix typo in vq_index description, Michael Tokarev, 2015/04/04
- Re: [Qemu-trivial] [Qemu-devel] [PULL 0/5 for-2.3] Trivial patches for 2015-04-04, Peter Maydell, 2015/04/07