Fixed MIPS jni dlsym lookup stub to use T9 to call native code.
Native code expects code pointer to be in T9 to generate GP reg. This
fix makes ReferenceMap and StackWalk work.
Change-Id: Ic20b434d623e5f3a14c1c3da52b801289956069c
diff --git a/src/oat/runtime/mips/stub_mips.cc b/src/oat/runtime/mips/stub_mips.cc
index 9c940a1..b04979b 100644
--- a/src/oat/runtime/mips/stub_mips.cc
+++ b/src/oat/runtime/mips/stub_mips.cc
@@ -193,7 +193,8 @@
Label no_native_code_found;
__ EmitBranch(V0, ZERO, &no_native_code_found, true);
- __ Jr(V0); // If V0 != 0 tail call method's code
+ __ Move(T9, V0); // Move result into T9
+ __ Jr(T9); // If result != 0, tail call method's code
__ Bind(&no_native_code_found, false);
__ Jr(RA); // Return to caller to handle exception