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/ppc64 | |
parent | bcc66562ad185e9c2a667b00426f625e2489bda9 (diff) | |
download | qemu-0aed257f08444feb6269d0c302b35a8fb10fcb3f.tar.gz qemu-0aed257f08444feb6269d0c302b35a8fb10fcb3f.tar.bz2 qemu-0aed257f08444feb6269d0c302b35a8fb10fcb3f.zip |
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/ppc64')
-rw-r--r-- | tcg/ppc64/tcg-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 6e9b363a1b..5403fc1f91 100644 --- a/tcg/ppc64/tcg-target.c +++ b/tcg/ppc64/tcg-target.c @@ -418,7 +418,7 @@ enum { CR_SO }; -static const uint32_t tcg_to_bc[10] = { +static const uint32_t tcg_to_bc[] = { [TCG_COND_EQ] = BC | BI (7, CR_EQ) | BO_COND_TRUE, [TCG_COND_NE] = BC | BI (7, CR_EQ) | BO_COND_FALSE, [TCG_COND_LT] = BC | BI (7, CR_LT) | BO_COND_TRUE, |