From 08863bce4fd69f3b65e1b1861196da55e7892ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 20 Feb 2022 18:54:21 +0100 Subject: [PATCH] Add flags for saturation ops This affects qadd and similar, which conditonally set the q flag. --- target/arm/translate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/arm/translate.c b/target/arm/translate.c index f9b4694e7595..9c54f4fe67d6 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -6259,6 +6259,10 @@ static bool op_qaddsub(DisasContext *s, arg_rrr *a, bool add, bool doub) } else { gen_helper_sub_saturate(t0, cpu_env, t0, t1); } +#ifdef HAS_TRACEWRAP + trace_read_cpsr(); + trace_store_cpsr(); +#endif tcg_temp_free_i32(t1); store_reg(s, a->rd, t0); return true;