Fix dalvik vm reg to callee save mappings
Neglected to include fp regs promoted as a double.
Change-Id: I7ca6ad5e755c5d2e20c1c903cf41491d605f258e
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc
index 8b9ae13..6198b42 100644
--- a/src/compiler/codegen/RallocUtil.cc
+++ b/src/compiler/codegen/RallocUtil.cc
@@ -287,6 +287,7 @@
p->inUse = true;
assert((res & 1) == 0);
cUnit->fpSpillMask |= (1 << (res & FP_REG_MASK));
+ cUnit->fpVmapTable.push_back(sReg);
cUnit->numSpills++;
cUnit->numFPSpills ++;
} else {
@@ -300,8 +301,10 @@
res = FPRegs[i].reg;
FPRegs[i].inUse = true;
cUnit->fpSpillMask |= (1 << (res & FP_REG_MASK));
+ cUnit->fpVmapTable.push_back(sReg);
FPRegs[i+1].inUse = true;
cUnit->fpSpillMask |= (1 << ((res+1) & FP_REG_MASK));
+ cUnit->fpVmapTable.push_back(sReg);
cUnit->numSpills += 2;
cUnit->numFPSpills += 2;
break;