Re: [RFC PATCH v2 12/19] target/arm: Move hflags code into the tcg directory

2023-01-11 Thread Richard Henderson
On 1/9/23 14:42, Fabiano Rosas wrote: +inline void assert_hflags_rebuild_correctly(CPUARMState *env) +{ +#ifdef CONFIG_DEBUG_TCG +CPUARMTBFlags c = env->hflags; +CPUARMTBFlags r = rebuild_hflags_internal(env); + +if (unlikely(c.flags != r.flags || c.flags2 != r.flags2)) { +fpr

[RFC PATCH v2 12/19] target/arm: Move hflags code into the tcg directory

2023-01-09 Thread Fabiano Rosas
The hflags are used only for TCG code, so introduce a new file hflags.c to keep that code. Signed-off-by: Fabiano Rosas --- target/arm/helper.c| 361 +--- target/arm/internals.h | 2 + target/arm/tcg-stubs.c | 5 + target/arm/tcg/hflags.c|