summaryrefslogtreecommitdiff
path: root/runtime/arch/mips/context_mips.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-09-28 22:40:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-09-28 22:40:18 +0000
commit931e26843bbb688eacfa67b40414c6b8f221a56a (patch)
tree63511ae48d4d485823e82f9f0c0af2bda4b78102 /runtime/arch/mips/context_mips.cc
parentac87001cbbd44b436cc7866f7a41037ca83b17f1 (diff)
parent639bdd13993644a267f177f8f5936496bda65e2b (diff)
Merge "ART: Single-frame deopt"
Diffstat (limited to 'runtime/arch/mips/context_mips.cc')
-rw-r--r--runtime/arch/mips/context_mips.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/arch/mips/context_mips.cc b/runtime/arch/mips/context_mips.cc
index bc2bf68993..08ab356855 100644
--- a/runtime/arch/mips/context_mips.cc
+++ b/runtime/arch/mips/context_mips.cc
@@ -30,9 +30,11 @@ void MipsContext::Reset() {
std::fill_n(fprs_, arraysize(fprs_), nullptr);
gprs_[SP] = &sp_;
gprs_[RA] = &ra_;
+ gprs_[A0] = &arg0_;
// Initialize registers with easy to spot debug values.
sp_ = MipsContext::kBadGprBase + SP;
ra_ = MipsContext::kBadGprBase + RA;
+ arg0_ = 0;
}
void MipsContext::FillCalleeSaves(const StackVisitor& fr) {