mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
bcc66562ad
commit
0aed257f08
11 changed files with 102 additions and 41 deletions
|
@ -437,7 +437,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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue