Index: src/mips/simulator-mips.h |
diff --git a/src/mips/simulator-mips.h b/src/mips/simulator-mips.h |
index d9fd10f245c3617e332bfdefeb8b9b3b2a099826..92a0a87d2406e2a2fc83274ae27363b62b3b72a0 100644 |
--- a/src/mips/simulator-mips.h |
+++ b/src/mips/simulator-mips.h |
@@ -203,6 +203,10 @@ class Simulator { |
void set_pc(int32_t value); |
int32_t get_pc() const; |
+ Address get_sp() { |
+ return reinterpret_cast<Address>(static_cast<intptr_t>(get_register(sp))); |
+ } |
+ |
// Accessor to the internal simulator stack area. |
uintptr_t StackLimit() const; |