@samitouri / QOSamiQemu / commits / d81491cd1e

target/alpha: Use FloatExceptionFlags

Fixes a bug in which we were still using uint8_t. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Richard Henderson committed May 1, 2026 at 13:09 UTC d81491cd1e04cf5df9cc59a955c59fe98dee6e72
1 file changed +2 -2
target/alpha/fpu_helper.c
+2 -2
@@ -40,7 +40,7 @@ void helper_setflushzero(CPUAlphaState *env, uint32_t val)
40
41 static uint32_t soft_to_fpcr_exc(CPUAlphaState *env)
42 {
43 - uint8_t exc = get_float_exception_flags(&FP_STATUS);
43 + FloatExceptionFlags exc = get_float_exception_flags(&FP_STATUS);
44 uint32_t ret = 0;
45
46 if (unlikely(exc)) {
@@ -455,7 +455,7 @@ static uint64_t do_cvttq(CPUAlphaState *env, uint64_t a, int roundmode)
455 float64 fa;
456 int64_t ret;
457 uint32_t exc = 0;
458 - int flags;
458 + FloatExceptionFlags flags;
459
460 fa = t_to_float64(a);
461 ret = float64_to_int64_modulo(fa, roundmode, &FP_STATUS);