else if (reg < 8)
tcg_gen_ld_tl(tn, cpu_env, offsetof(CPUState, gregs[reg]));
else {
- tcg_gen_ld_ptr(cpu_regwptr, cpu_env, offsetof(CPUState, regwptr)); // XXX
tcg_gen_ld_tl(tn, cpu_regwptr, (reg - 8) * sizeof(target_ulong));
}
}
else if (reg < 8)
tcg_gen_st_tl(tn, cpu_env, offsetof(CPUState, gregs[reg]));
else {
- tcg_gen_ld_ptr(cpu_regwptr, cpu_env, offsetof(CPUState, regwptr)); // XXX
tcg_gen_st_tl(tn, cpu_regwptr, (reg - 8) * sizeof(target_ulong));
}
}
gen_opc_end = gen_opc_buf + OPC_MAX_SIZE;
cpu_tmp0 = tcg_temp_new(TCG_TYPE_TL);
- cpu_regwptr = tcg_temp_new(TCG_TYPE_PTR); // XXX
do {
if (env->nb_breakpoints > 0) {
tcg_set_macro_func(&tcg_ctx, tcg_macro_func);
cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AREG0, "env");
+ cpu_regwptr = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0,
+ offsetof(CPUState, regwptr),
+ "regwptr");
//#if TARGET_LONG_BITS > HOST_LONG_BITS
#ifdef TARGET_SPARC64
cpu_T[0] = tcg_global_mem_new(TCG_TYPE_TL,