else
ARCH(6);
addr = tcg_temp_local_new_i32();
- tcg_gen_mov_i32(addr, cpu_R[rn]);
+ load_reg_var(s, addr, rn);
if (insn & (1 << 20)) {
gen_helper_mark_exclusive(cpu_env, addr);
switch (op1) {
} else if ((insn & (1 << 23)) == 0) {
/* Load/store exclusive word. */
addr = tcg_temp_local_new();
- tcg_gen_mov_i32(addr, cpu_R[rn]);
+ load_reg_var(s, addr, rn);
if (insn & (1 << 20)) {
gen_helper_mark_exclusive(cpu_env, addr);
tmp = gen_ld32(addr, IS_USER(s));
so it is good enough. */
op = (insn >> 4) & 0x3;
addr = tcg_temp_local_new();
- tcg_gen_mov_i32(addr, cpu_R[rn]);
+ load_reg_var(s, addr, rn);
if (insn & (1 << 20)) {
gen_helper_mark_exclusive(cpu_env, addr);
switch (op) {