aboutsummaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 19:36:03 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 19:36:03 +0000
commit622ed3605bf4caa5d52b407081ceb6ecce752aec (patch)
treefee9d5e6565753bc31943e70067d1b5d9e771029 /target-cris
parent62d60e8cc4c4c8aebdfd97f10087456d2690c0a0 (diff)
downloadqemu-622ed3605bf4caa5d52b407081ceb6ecce752aec.zip
qemu-622ed3605bf4caa5d52b407081ceb6ecce752aec.tar.gz
qemu-622ed3605bf4caa5d52b407081ceb6ecce752aec.tar.bz2
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-cris')
-rw-r--r--target-cris/cpu.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index 1a8c884..19cb209 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -237,7 +237,12 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
#define SFR_RW_MM_TLB_LO env->pregs[PR_SRS]][5
#define SFR_RW_MM_TLB_HI env->pregs[PR_SRS]][6
-#define CPU_PC_FROM_TB(env, tb) env->pc = tb->pc
-
#include "cpu-all.h"
+#include "exec-all.h"
+
+static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
+{
+ env->pc = tb->pc;
+}
+
#endif