diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-03-21 10:49:50 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-06-09 23:38:16 +0300 |
commit | d8ca9712f58f05f5668c43678f132330f2636ac3 (patch) | |
tree | a4f8b830e57d578fdd762171184482e102c59dea /target/m68k | |
parent | 890e37e27cd6b38a6e9bccf48c05700bab429b53 (diff) | |
download | qemu-d8ca9712f58f05f5668c43678f132330f2636ac3.zip qemu-d8ca9712f58f05f5668c43678f132330f2636ac3.tar.gz qemu-d8ca9712f58f05f5668c43678f132330f2636ac3.tar.bz2 |
target/m68k/fpu_helper: Use FloatRelation enum to hold comparison result
Use the FloatRelation enum to hold the comparison result (missed
in commit 71bfd65c5f "softfloat: Name compare relation enum").
Inspired-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target/m68k')
-rw-r--r-- | target/m68k/fpu_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c index 3a37d8f..ab120b5 100644 --- a/target/m68k/fpu_helper.c +++ b/target/m68k/fpu_helper.c @@ -349,7 +349,7 @@ void HELPER(fsgldiv)(CPUM68KState *env, FPReg *res, FPReg *val0, FPReg *val1) PREC_END(); } -static int float_comp_to_cc(int float_compare) +static int float_comp_to_cc(FloatRelation float_compare) { switch (float_compare) { case float_relation_equal: @@ -367,7 +367,7 @@ static int float_comp_to_cc(int float_compare) void HELPER(fcmp)(CPUM68KState *env, FPReg *val0, FPReg *val1) { - int float_compare; + FloatRelation float_compare; float_compare = floatx80_compare(val1->d, val0->d, &env->fp_status); env->fpsr = (env->fpsr & ~FPSR_CC_MASK) | float_comp_to_cc(float_compare); |