On 05/17/2011 03:32 PM, Max Filippov wrote: > +static void gen_window_check1(DisasContext *dc, unsigned r1) > +{ > + if (option_enabled(dc, XTENSA_OPTION_WINDOWED_REGISTER) && > + r1 / 4 > dc->used_window) { > + TCGv_i32 pc = tcg_const_i32(dc->pc); > + TCGv_i32 w = tcg_const_i32(r1 / 4); > + > + gen_advance_ccount(dc); > + gen_helper_window_check(pc, w); > + > + tcg_temp_free(w); > + tcg_temp_free(pc); > + }
dc->used_window is never set to non-zero. I assume you meant to do that here? r~