> On 17. Feb 2026, at 22:08, Osama Abdelkader <[email protected]> > wrote: > > In whpx_get_registers and whpx_set_registers the loops over FP registers > were using whpx_reg_match[i].reg instead of whpx_fpreg_match[i].reg > > Signed-off-by: Osama Abdelkader <[email protected]> > ---
Reviewed-by: Mohamed Mediouni <[email protected] <mailto:[email protected]>> Thank you, > target/arm/whpx/whpx-all.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/target/arm/whpx/whpx-all.c b/target/arm/whpx/whpx-all.c > index b0602266af..40ada2d5b6 100644 > --- a/target/arm/whpx/whpx-all.c > +++ b/target/arm/whpx/whpx-all.c > @@ -554,7 +554,7 @@ void whpx_get_registers(CPUState *cpu) > } > > for (i = 0; i < ARRAY_SIZE(whpx_fpreg_match); i++) { > - whpx_get_reg(cpu, whpx_reg_match[i].reg, &val); > + whpx_get_reg(cpu, whpx_fpreg_match[i].reg, &val); > memcpy((char *)env + whpx_fpreg_match[i].offset, &val, > sizeof(val.Reg128)); > } > > @@ -605,7 +605,7 @@ void whpx_set_registers(CPUState *cpu, int level) > > for (i = 0; i < ARRAY_SIZE(whpx_fpreg_match); i++) { > memcpy(&val.Reg128, (char *)env + whpx_fpreg_match[i].offset, > sizeof(val.Reg128)); > - whpx_set_reg(cpu, whpx_reg_match[i].reg, val); > + whpx_set_reg(cpu, whpx_fpreg_match[i].reg, val); > } > > clean_whv_register_value(&val); > -- > 2.43.0 >
