mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -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
|
@ -268,7 +268,7 @@ static const int tcg_target_call_oarg_regs[] = {
|
|||
#define S390_CC_ALWAYS 15
|
||||
|
||||
/* Condition codes that result from a COMPARE and COMPARE LOGICAL. */
|
||||
static const uint8_t tcg_cond_to_s390_cond[10] = {
|
||||
static const uint8_t tcg_cond_to_s390_cond[] = {
|
||||
[TCG_COND_EQ] = S390_CC_EQ,
|
||||
[TCG_COND_NE] = S390_CC_NE,
|
||||
[TCG_COND_LT] = S390_CC_LT,
|
||||
|
@ -284,7 +284,7 @@ static const uint8_t tcg_cond_to_s390_cond[10] = {
|
|||
/* Condition codes that result from a LOAD AND TEST. Here, we have no
|
||||
unsigned instruction variation, however since the test is vs zero we
|
||||
can re-map the outcomes appropriately. */
|
||||
static const uint8_t tcg_cond_to_ltr_cond[10] = {
|
||||
static const uint8_t tcg_cond_to_ltr_cond[] = {
|
||||
[TCG_COND_EQ] = S390_CC_EQ,
|
||||
[TCG_COND_NE] = S390_CC_NE,
|
||||
[TCG_COND_LT] = S390_CC_LT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue