target-tricore: Fix bugs found by coverity
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 21 Jan 2015 16:16:01 +0000 (16:16 +0000)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 26 Jan 2015 19:56:45 +0000 (19:56 +0000)
commit40a1f64b468ee247fca3b237f0b89f066e59626c
treef53e296b0266496348e46350e04f66a47e02b132
parent811ea608e9721dc4f6933da440f235e7d3a39c0f
target-tricore: Fix bugs found by coverity

This fixes one bug and one false positive found by coverity. The bug is,
that gen_mtcr was missing a mask to check the flag, which resulted in dead code.

The false positive is a intentional missing break for a jump and link address
insn followed by a jump and link insn. This adds a fall through comment to avoid
the false positive in the future.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target-tricore/cpu.h
target-tricore/translate.c