Index: src/arm/simulator-arm.h |
diff --git a/src/arm/simulator-arm.h b/src/arm/simulator-arm.h |
index 0af5162e9380e1beafe512948129c62cb1d91443..24d7fe58c44590f3732ddeb376795089f2721bb0 100644 |
--- a/src/arm/simulator-arm.h |
+++ b/src/arm/simulator-arm.h |
@@ -207,6 +207,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; |