whpx: fix FP register loop
PATCH 1/1 whpx: fix FP register loop
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]>
--- target/arm/whpx/whpx-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/arm/whpx/whpx-all.c +2 -2
@@ -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);
Signature · 1 line
2.43.0
Quoted 7 lines · Osama Abdelkader
In
whpx_get_registersandwhpx_set_registersthe loops over FP registers were using whpx_reg_match[i].reg instead of whpx_fpreg_match[i].regSigned-off-by Osama Abdelkader <[email protected]>--- target/arm/whpx/whpx-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 9 lines · Osama Abdelkader
In
whpx_get_registersandwhpx_set_registersthe loops over FP registers were using whpx_reg_match[i].reg instead of whpx_fpreg_match[i].regSigned-off-by Osama Abdelkader <[email protected]>---
Reviewed-by Mohamed Mediouni <[email protected] <mailto:[email protected]>>
Thank you,
Quoted 28 lines
target/arm/whpx/whpx-all.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)target/arm/whpx/whpx-all.c +2
-2@@ -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);Signature · 1 line
2.43.0
Peter Maydell
AppliedQuoted 7 lines · Osama Abdelkader
In
whpx_get_registersandwhpx_set_registersthe loops over FP registers were using whpx_reg_match[i].reg instead of whpx_fpreg_match[i].regSigned-off-by Osama Abdelkader <[email protected]>--- target/arm/whpx/whpx-all.c | 4 ++--
Applied to target-arm.next, thanks.
-- PMM