mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 17:19:36 +00:00
CRIS: Correct condition for when to apply fast move flags evaluation. Correct single-stepping over branches.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4944 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f451387ac0
commit
89cc738203
@ -979,7 +979,7 @@ static void gen_tst_cc (DisasContext *dc, int cond)
|
|||||||
* code is true.
|
* code is true.
|
||||||
*/
|
*/
|
||||||
arith_opt = arith_cc(dc) && !dc->flags_uptodate;
|
arith_opt = arith_cc(dc) && !dc->flags_uptodate;
|
||||||
move_opt = (dc->cc_op == CC_OP_MOVE) && !dc->flags_uptodate;
|
move_opt = (dc->cc_op == CC_OP_MOVE) && dc->flags_uptodate;
|
||||||
switch (cond) {
|
switch (cond) {
|
||||||
case CC_EQ:
|
case CC_EQ:
|
||||||
if (arith_opt || move_opt) {
|
if (arith_opt || move_opt) {
|
||||||
@ -3192,6 +3192,7 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
|
|||||||
cris_evaluate_flags (dc);
|
cris_evaluate_flags (dc);
|
||||||
|
|
||||||
if (unlikely(env->singlestep_enabled)) {
|
if (unlikely(env->singlestep_enabled)) {
|
||||||
|
if (dc->is_jmp == DISAS_NEXT)
|
||||||
tcg_gen_movi_tl(env_pc, npc);
|
tcg_gen_movi_tl(env_pc, npc);
|
||||||
t_gen_raise_exception(EXCP_DEBUG);
|
t_gen_raise_exception(EXCP_DEBUG);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user