diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-01-04 02:28:58 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-01-04 16:44:48 +0100 |
commit | 4131c242cc850aaf76e59d4c787d220f07850cf5 (patch) | |
tree | 5f79c03f1902da3751f3de3ff536441a270cd823 /target | |
parent | 7cd7b5ca9be805e8a4ced4c07014c24e34812f27 (diff) | |
download | qemu-4131c242cc850aaf76e59d4c787d220f07850cf5.zip qemu-4131c242cc850aaf76e59d4c787d220f07850cf5.tar.gz qemu-4131c242cc850aaf76e59d4c787d220f07850cf5.tar.bz2 |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/m68k/translate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 0e9d651..1e9fb01 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); update_cc_op(s); dest = tcg_temp_new(); gen_helper_get_ccr(dest, cpu_env); |