Index: runtime/vm/simulator_mips.h |
diff --git a/runtime/vm/simulator_mips.h b/runtime/vm/simulator_mips.h |
index 8d10c3f2d7ec2cbba9a653e4f834fbd4172079ae..700b1f5e2ba25da6ba82aa8edb2e6b02de1d4c94 100644 |
--- a/runtime/vm/simulator_mips.h |
+++ b/runtime/vm/simulator_mips.h |
@@ -58,6 +58,10 @@ class Simulator { |
int64_t get_dregister_bits(DRegister freg) const; |
double get_dregister(DRegister freg) const; |
+ int32_t get_sp() const { |
+ return get_register(SPREG); |
+ } |
+ |
// Accessor for the pc. |
void set_pc(int32_t value) { pc_ = value; } |
int32_t get_pc() const { return pc_; } |