Index: runtime/vm/simulator_arm.h |
diff --git a/runtime/vm/simulator_arm.h b/runtime/vm/simulator_arm.h |
index af3cb098dc92d7aa8a8c2b974cb6b40800f70d7a..ce18ac00fe4ee42b297b9b9ba30a02cafd13115d 100644 |
--- a/runtime/vm/simulator_arm.h |
+++ b/runtime/vm/simulator_arm.h |
@@ -52,6 +52,10 @@ class Simulator { |
void set_register(Register reg, int32_t value); |
int32_t get_register(Register reg) const; |
+ int32_t get_sp() const { |
+ return get_register(SPREG); |
+ } |
+ |
// Special case of set_register and get_register to access the raw PC value. |
void set_pc(int32_t value); |
int32_t get_pc() const; |