On 16/9/25 16:22, Richard Henderson wrote:
Change hvf_get_registers and hvf_put_registers to iterate over
cpregs_indexes instead of hvf_sreg_match.

This lets us drop the cp_idx member of hvf_sreg_match, which leaves
only one member in the struct.  Replace the struct with a const array.
Instead of int, use the proper enum type: hv_sys_reg_t.
Rename from hvf_sreg_match to hvf_sreg_list because there is no
longer any matching going on.

Signed-off-by: Richard Henderson <[email protected]>
---
  target/arm/hvf/hvf.c | 45 +++++++++++++++-----------------------------
  1 file changed, 15 insertions(+), 30 deletions(-)

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

Reply via email to