Preliminary changes to allow mips target to build.

It compiles, but it doesn't work yet.

Change-Id: I2973a03bd956d8d398b9cfd1047e66fbf3ff439c
diff --git a/src/oat/runtime/mips/context_mips.h b/src/oat/runtime/mips/context_mips.h
new file mode 100644
index 0000000..da4fc6a
--- /dev/null
+++ b/src/oat/runtime/mips/context_mips.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ART_SRC_OAT_RUNTIME_MIPS_CONTEXT_MIPS_H_
+#define ART_SRC_OAT_RUNTIME_MIPS_CONTEXT_MIPS_H_
+
+#include "constants_mips.h"
+#include "oat/runtime/context.h"
+
+namespace art {
+namespace mips {
+
+class MipsContext : public Context {
+ public:
+  MipsContext();
+  virtual ~MipsContext() {}
+
+  // No callee saves on mips
+  virtual void FillCalleeSaves(const StackVisitor& fr);
+
+  virtual void SetSP(uintptr_t new_sp) {
+    gprs_[SP] = new_sp;
+  }
+
+  virtual void SetPC(uintptr_t new_pc) {
+    pc_ = new_pc;
+  }
+
+  virtual uintptr_t GetGPR(uint32_t reg) {
+    CHECK_GE(reg, 0u);
+    CHECK_LT(reg, 32u);
+    return gprs_[reg];
+  }
+
+  virtual void SmashCallerSaves();
+  virtual void DoLongJump();
+
+ private:
+  uintptr_t gprs_[32];
+  uint32_t fprs_[32];
+  uintptr_t pc_;
+};
+}  // namespace mips
+}  // namespace art
+
+#endif  // ART_SRC_OAT_RUNTIME_MIPS_CONTEXT_MIPS_H_