aboutsummaryrefslogtreecommitdiff
path: root/target-arm/exec.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-arm/exec.h')
-rw-r--r--target-arm/exec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-arm/exec.h b/target-arm/exec.h
index 0225c3fcd3..e4c35a33eb 100644
--- a/target-arm/exec.h
+++ b/target-arm/exec.h
@@ -50,3 +50,9 @@ static inline int cpu_halted(CPUState *env) {
#endif
void raise_exception(int);
+
+static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
+{
+ env->regs[15] = tb->pc;
+}
+