On 16/9/25 16:22, Richard Henderson wrote:
Adjust count_cpreg and add_cpreg_to_list to be used with
g_hash_table_foreach instead of g_list_foreach.  In this way we have
the ARMCPRegInfo pointer directly rather than having to look it up
from the key.

Delay the sorting of the cpreg_indexes until after add_cpreg_to_list.
This allows us to sort the data that we actually care about,
the kvm id, as computed within add_cpreg_to_list, instead of
having to repeatedly compute the kvm id within cpreg_key_compare.

Signed-off-by: Richard Henderson <[email protected]>
---
  target/arm/helper.c | 54 ++++++++++++++++++---------------------------
  1 file changed, 21 insertions(+), 33 deletions(-)

Is this the why for "target/arm/hvf: Sort the cpreg_indexes array"?
If so, maybe move the other patch previous this one?

Tested-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to