mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
target/i386: clean up cpu_cc_compute_all
cpu_cc_compute_all() has an argument that is always equal to CC_OP for historical
reasons (dating back to commit a7812ae412
, "TCG variable type checking.", 2008-11-17,
which added the argument to helper_cc_compute_all). It does not make sense for the
argument to have any other value, so remove it and clean up some lines that are not
too long anymore.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8cc746525c
commit
2455e9cf5a
6 changed files with 18 additions and 20 deletions
|
@ -484,9 +484,8 @@ void helper_fcomi_ST0_FT0(CPUX86State *env)
|
|||
FloatRelation ret;
|
||||
|
||||
ret = floatx80_compare(ST0, FT0, &env->fp_status);
|
||||
eflags = cpu_cc_compute_all(env, CC_OP);
|
||||
eflags = (eflags & ~(CC_Z | CC_P | CC_C)) | fcomi_ccval[ret + 1];
|
||||
CC_SRC = eflags;
|
||||
eflags = cpu_cc_compute_all(env) & ~(CC_Z | CC_P | CC_C);
|
||||
CC_SRC = eflags | fcomi_ccval[ret + 1];
|
||||
merge_exception_flags(env, old_flags);
|
||||
}
|
||||
|
||||
|
@ -497,9 +496,8 @@ void helper_fucomi_ST0_FT0(CPUX86State *env)
|
|||
FloatRelation ret;
|
||||
|
||||
ret = floatx80_compare_quiet(ST0, FT0, &env->fp_status);
|
||||
eflags = cpu_cc_compute_all(env, CC_OP);
|
||||
eflags = (eflags & ~(CC_Z | CC_P | CC_C)) | fcomi_ccval[ret + 1];
|
||||
CC_SRC = eflags;
|
||||
eflags = cpu_cc_compute_all(env) & ~(CC_Z | CC_P | CC_C);
|
||||
CC_SRC = eflags | fcomi_ccval[ret + 1];
|
||||
merge_exception_flags(env, old_flags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue