On Sun, 1 May 2022 at 07:18, Richard Henderson <richard.hender...@linaro.org> wrote: > > Simplify freeing cp_regs hash table entries by using a single > allocation for the entire value. > > This fixes a theoretical bug if we were to ever free the entire > hash table, because we've been installing string literal constants > into the cpreg structure in define_arm_vh_e2h_redirects_aliases. > However, at present we only free entries created for AArch32 > wildcard cpregs which get overwritten by more specific cpregs, > so this bug is never exposed. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM