summaryrefslogtreecommitdiffstats
path: root/runtime/arch/mips/context_mips.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2015-05-27 14:07:08 +0100
committerVladimir Marko <vmarko@google.com>2015-05-27 14:11:25 +0100
commit5b09ea0af468d9232cf725ac7f7e73c145892c5c (patch)
tree9ae48c564dcf44681052ed05427a906f33aaf670 /runtime/arch/mips/context_mips.cc
parent00f09ff93480d5f43aaf657650a59d57330184aa (diff)
downloadart-5b09ea0af468d9232cf725ac7f7e73c145892c5c.tar.gz
art-5b09ea0af468d9232cf725ac7f7e73c145892c5c.tar.bz2
art-5b09ea0af468d9232cf725ac7f7e73c145892c5c.zip
ART: Use kBadFprBase on mips64 and arm64.
Fix incorrect usage of kBadGprBase to avoid misleading and ambiguous data in crash investigations. Bug: 21266656 Change-Id: I1de6cd621d770be586f8140e86833769865b42c6
Diffstat (limited to 'runtime/arch/mips/context_mips.cc')
-rw-r--r--runtime/arch/mips/context_mips.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/arch/mips/context_mips.cc b/runtime/arch/mips/context_mips.cc
index f0c893a285..24892e95bb 100644
--- a/runtime/arch/mips/context_mips.cc
+++ b/runtime/arch/mips/context_mips.cc
@@ -87,7 +87,7 @@ void MipsContext::DoLongJump() {
gprs[i] = gprs_[i] != nullptr ? *gprs_[i] : MipsContext::kBadGprBase + i;
}
for (size_t i = 0; i < kNumberOfFRegisters; ++i) {
- fprs[i] = fprs_[i] != nullptr ? *fprs_[i] : MipsContext::kBadGprBase + i;
+ fprs[i] = fprs_[i] != nullptr ? *fprs_[i] : MipsContext::kBadFprBase + i;
}
art_quick_do_long_jump(gprs, fprs);
}