diff options
author | Richard Henderson <rth@twiddle.net> | 2012-09-24 14:21:40 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2012-10-06 18:48:40 +0200 |
commit | 0aed257f08444feb6269d0c302b35a8fb10fcb3f (patch) | |
tree | 17afe2f486f714ed5b6c3460f4dbec15e6563c3e /tcg/sparc | |
parent | bcc66562ad185e9c2a667b00426f625e2489bda9 (diff) | |
download | qemu-0aed257f08444feb6269d0c302b35a8fb10fcb3f.zip qemu-0aed257f08444feb6269d0c302b35a8fb10fcb3f.tar.gz qemu-0aed257f08444feb6269d0c302b35a8fb10fcb3f.tar.bz2 |
tcg: Add TCG_COND_NEVER, TCG_COND_ALWAYS
There are several cases that can be handled easier inside both
translators and code generators if we have out-of-band values
for conditions. It's easy enough to handle ALWAYS and NEVER in
the natural way inside the tcg middle-end.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/sparc')
-rw-r--r-- | tcg/sparc/tcg-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index e82fab2..0c32baa 100644 --- a/tcg/sparc/tcg-target.c +++ b/tcg/sparc/tcg-target.c @@ -512,7 +512,7 @@ static void tcg_out_branch_i64(TCGContext *s, int opc, int label_index) } #endif -static const uint8_t tcg_cond_to_bcond[10] = { +static const uint8_t tcg_cond_to_bcond[] = { [TCG_COND_EQ] = COND_E, [TCG_COND_NE] = COND_NE, [TCG_COND_LT] = COND_L, |