2
0
Эх сурвалжийг харах

hv_vcpu_set_reg: fix typo for setting fp

This actually didn't affect anything, surprisingly: QEMU doesn't sync state often.
Zhuowei Zhang 2 жил өмнө
parent
commit
a3fc635d52
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      hv.c

+ 1 - 1
hv.c

@@ -392,7 +392,7 @@ hv_return_t hv_vcpu_set_reg(hv_vcpu_t vcpu, hv_reg_t reg, uint64_t value) {
   if (reg < HV_REG_FP) {
     vcpu_zone->rw.regs.x[reg] = value;
   } else if (reg == HV_REG_FP) {
-    vcpu_zone->rw.regs.lr = value;
+    vcpu_zone->rw.regs.fp = value;
   } else if (reg == HV_REG_LR) {
     vcpu_zone->rw.regs.lr = value;
   } else if (reg == HV_REG_PC) {