target/m68k: fix gen_get_ccr()
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 <laurent@vivier.eu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20180104012913.30763-3-laurent@vivier.eu>
This commit is contained in:
parent
7cd7b5ca9b
commit
4131c242cc
@ -2478,7 +2478,6 @@ static TCGv gen_get_ccr(DisasContext *s)
|
||||
{
|
||||
TCGv dest;
|
||||
|
||||
gen_flush_flags(s);
|
||||
update_cc_op(s);
|
||||
dest = tcg_temp_new();
|
||||
gen_helper_get_ccr(dest, cpu_env);
|
||||
|
Loading…
Reference in New Issue
Block a user