aboutsummaryrefslogtreecommitdiff
path: root/cpu-exec.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-29 14:57:59 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-29 14:57:59 +0000
commitacf930aaa3763be08a41f2478b3e0b252f545cd0 (patch)
tree087d303e39cc7e186a20bfef4842131edef3a1ad /cpu-exec.c
parent2b8bdefc3a35473e1d43c22e6201aad900dccad2 (diff)
downloadqemu-acf930aaa3763be08a41f2478b3e0b252f545cd0.zip
qemu-acf930aaa3763be08a41f2478b3e0b252f545cd0.tar.gz
qemu-acf930aaa3763be08a41f2478b3e0b252f545cd0.tar.bz2
ColdFire EMAC support.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2895 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-exec.c')
-rw-r--r--cpu-exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpu-exec.c b/cpu-exec.c
index ea18b73..c3d99d4 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -196,7 +196,9 @@ static inline TranslationBlock *tb_find_fast(void)
cs_base = 0;
pc = env->PC;
#elif defined(TARGET_M68K)
- flags = (env->fpcr & M68K_FPCR_PREC) | (env->sr & SR_S);
+ flags = (env->fpcr & M68K_FPCR_PREC) /* Bit 6 */
+ | (env->sr & SR_S) /* Bit 13 */
+ | ((env->macsr >> 4) & 0xf); /* Bits 0-3 */
cs_base = 0;
pc = env->pc;
#elif defined(TARGET_SH4)