diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-06-29 09:58:50 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-07-03 09:48:12 +0300 |
commit | 10eb0cc03c20b232356edb367516939d6d7bb862 (patch) | |
tree | aa231e9b32dc701736ea0c8d193413aaabc3659c /target-mips/exec.h | |
parent | remove unused stuff from */exec.h (diff) | |
download | qemu-kvm-10eb0cc03c20b232356edb367516939d6d7bb862.tar.gz qemu-kvm-10eb0cc03c20b232356edb367516939d6d7bb862.tar.bz2 qemu-kvm-10eb0cc03c20b232356edb367516939d6d7bb862.zip |
move cpu_pc_from_tb to target-*/exec.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-mips/exec.h')
-rw-r--r-- | target-mips/exec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-mips/exec.h b/target-mips/exec.h index a07761d88..af61b54dc 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__) */ |