[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v7 02/17] target/m68k: fix gen_get_ccr()

From: Laurent Vivier
Subject: [Qemu-devel] [PATCH v7 02/17] target/m68k: fix gen_get_ccr()
Date: Thu, 4 Jan 2018 02:28:58 +0100

As gen_helper_get_ccr() is able to compute CCR from cc_op and
flags, we don't need to flush flags before to call it.
flush_flags() and get_ccr() use COMPUTE_CCR() to compute
flags. get_ccr() computes CCR value,
whereas flush_flags update live cc_op and flags.

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
 target/m68k/translate.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/m68k/translate.c b/target/m68k/translate.c
index 0e9d651a2a..1e9fb01252 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -2478,7 +2478,6 @@ static TCGv gen_get_ccr(DisasContext *s)
     TCGv dest;
-    gen_flush_flags(s);
     dest = tcg_temp_new();
     gen_helper_get_ccr(dest, cpu_env);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]