summaryrefslogtreecommitdiffstats
path: root/target-alpha/cpu.h
diff options
context:
space:
mode:
authoraliguori2008-11-18 20:36:03 +0100
committeraliguori2008-11-18 20:36:03 +0100
commit622ed3605bf4caa5d52b407081ceb6ecce752aec (patch)
treefee9d5e6565753bc31943e70067d1b5d9e771029 /target-alpha/cpu.h
parentMake KVM slot management more robust (diff)
downloadqemu-622ed3605bf4caa5d52b407081ceb6ecce752aec.tar.gz
qemu-622ed3605bf4caa5d52b407081ceb6ecce752aec.tar.xz
qemu-622ed3605bf4caa5d52b407081ceb6ecce752aec.zip
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
Diffstat (limited to 'target-alpha/cpu.h')
-rw-r--r--target-alpha/cpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index 210cc55f94..f606fac53b 100644
--- a/target-alpha/cpu.h
+++ b/target-alpha/cpu.h
@@ -318,6 +318,7 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
#endif
#include "cpu-all.h"
+#include "exec-all.h"
enum {
FEATURE_ASN = 0x00000001,
@@ -416,6 +417,9 @@ void call_pal (CPUState *env);
void call_pal (CPUState *env, int palcode);
#endif
-#define CPU_PC_FROM_TB(env, tb) env->pc = tb->pc
+static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
+{
+ env->pc = tb->pc;
+}
#endif /* !defined (__CPU_ALPHA_H__) */