]> git.proxmox.com Git - qemu.git/commit - target-openrisc/translate.c
target-openrisc: Remove unnecessary code generated by jump instructions
authorSebastian Macke <sebastian@macke.de>
Tue, 22 Oct 2013 00:12:38 +0000 (02:12 +0200)
committerJia Liu <proljc@gmail.com>
Wed, 20 Nov 2013 13:43:38 +0000 (21:43 +0800)
commitda1d77597b29f45bfd290d251ee459a2794112c6
treeb3070f134d76121eb92a27c440ee6a95d1d0b8eb
parent352367e8bb53bd4e16abaecbcb9fc0bcadf5881b
target-openrisc: Remove unnecessary code generated by jump instructions

The sr_f variable is only used for the l.bf and l.bnf instructions.
For clarity the code is also rewritten using a switch statement instead
of if chaining.

Signed-off-by: Sebastian Macke <sebastian@macke.de>
Reviewed-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Jia Liu <proljc@gmail.com>
target-openrisc/translate.c