From 10eb0cc03c20b232356edb367516939d6d7bb862 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 29 Jun 2010 09:58:50 +0200 Subject: move cpu_pc_from_tb to target-*/exec.h Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- target-mips/exec.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target-mips/exec.h') diff --git a/target-mips/exec.h b/target-mips/exec.h index a07761d88f..af61b54dcf 100644 --- a/target-mips/exec.h +++ b/target-mips/exec.h @@ -76,4 +76,11 @@ static inline void compute_hflags(CPUState *env) } } +static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) +{ + env->active_tc.PC = tb->pc; + env->hflags &= ~MIPS_HFLAG_BMASK; + env->hflags |= tb->flags & MIPS_HFLAG_BMASK; +} + #endif /* !defined(__QEMU_MIPS_EXEC_H__) */ -- cgit v1.2.3