indentation

This commit is contained in:
Nguyen Anh Quynh 2015-12-28 13:04:59 +08:00
parent 99b401c609
commit b5feddbf1e

View file

@ -1699,15 +1699,15 @@ static void tcg_liveness_analysis(TCGContext *s)
// this causes problem because check_exit_request() inserts // this causes problem because check_exit_request() inserts
// brcond instruction in the middle of the TB, // brcond instruction in the middle of the TB,
// which incorrectly flags end-of-block // which incorrectly flags end-of-block
if (op != INDEX_op_brcond_i32) if (op != INDEX_op_brcond_i32)
tcg_la_bb_end(s, dead_temps, mem_temps); tcg_la_bb_end(s, dead_temps, mem_temps);
// Unicorn: we do not touch dead temps for brcond, // Unicorn: we do not touch dead temps for brcond,
// but we should refresh TCG globals In-Memory states, // but we should refresh TCG globals In-Memory states,
// otherwise, important CPU states(especially conditional flags) might be forgotten, // otherwise, important CPU states(especially conditional flags) might be forgotten,
// result in wrongly generated host code that run into wrong branch. // result in wrongly generated host code that run into wrong branch.
// Refer to https://github.com/unicorn-engine/unicorn/issues/287 for further information // Refer to https://github.com/unicorn-engine/unicorn/issues/287 for further information
else else
tcg_la_br_end(s, mem_temps); tcg_la_br_end(s, mem_temps);
} else if (def->flags & TCG_OPF_SIDE_EFFECTS) { } else if (def->flags & TCG_OPF_SIDE_EFFECTS) {
/* globals should be synced to memory */ /* globals should be synced to memory */
memset(mem_temps, 1, s->nb_globals); memset(mem_temps, 1, s->nb_globals);