mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
83dae09588
commit
10eb0cc03c
22 changed files with 65 additions and 59 deletions
|
@ -303,12 +303,6 @@ static inline int cpu_ptel_pr (uint32_t ptel)
|
|||
#define PTEA_TC (1 << 3)
|
||||
#define cpu_ptea_tc(ptea) (((ptea) & PTEA_TC) >> 3)
|
||||
|
||||
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
|
||||
{
|
||||
env->pc = tb->pc;
|
||||
env->flags = tb->flags;
|
||||
}
|
||||
|
||||
#define TB_FLAG_PENDING_MOVCA (1 << 4)
|
||||
|
||||
static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
|
||||
|
|
|
@ -47,4 +47,10 @@ static inline int cpu_halted(CPUState *env) {
|
|||
#include "softmmu_exec.h"
|
||||
#endif
|
||||
|
||||
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
|
||||
{
|
||||
env->pc = tb->pc;
|
||||
env->flags = tb->flags;
|
||||
}
|
||||
|
||||
#endif /* _EXEC_SH4_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue