mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
Convert CPU_PC_FROM_TB to static inline (Jan Kiszka)
as macros should be avoided when possible. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5735 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
62d60e8cc4
commit
622ed3605b
10 changed files with 59 additions and 28 deletions
|
@ -491,12 +491,8 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
|
|||
}
|
||||
#endif
|
||||
|
||||
#define CPU_PC_FROM_TB(env, tb) do { \
|
||||
env->pc = tb->pc; \
|
||||
env->npc = tb->cs_base; \
|
||||
} while(0)
|
||||
|
||||
#include "cpu-all.h"
|
||||
#include "exec-all.h"
|
||||
|
||||
/* sum4m.c, sun4u.c */
|
||||
void cpu_check_irqs(CPUSPARCState *env);
|
||||
|
@ -508,4 +504,10 @@ uint64_t cpu_tick_get_count(void *opaque);
|
|||
void cpu_tick_set_limit(void *opaque, uint64_t limit);
|
||||
#endif
|
||||
|
||||
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
|
||||
{
|
||||
env->pc = tb->pc;
|
||||
env->npc = tb->cs_base;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue