On 05/16/2014 11:13 AM, Petar Jovanovic wrote: > > -static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel) > +static void gen_mfc0(CPUMIPSState *env, DisasContext *ctx, > +
You should not be passing around env within the translator, at all. You should be able to get everything you need from ctx->hflags or ctx->insn_flags. If there's something missing from ctx, then we'll talk about additional changes. r~