summaryrefslogtreecommitdiff
path: root/arm/arm_emit.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm/arm_emit.h')
-rw-r--r--arm/arm_emit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arm/arm_emit.h b/arm/arm_emit.h
index 4198c7d..22ca763 100644
--- a/arm/arm_emit.h
+++ b/arm/arm_emit.h
@@ -1657,8 +1657,9 @@ u32 execute_store_cpsr_body(u32 _cpsr, u32 store_mask, u32 address)
/* Operation types: imm, mem_reg, mem_imm */
#define thumb_load_pc_pool_const(reg_rd, value) \
- generate_load_pc(reg_a0, (value)); \
- generate_store_reg(reg_a0, reg_rd)
+ u32 rgdst = prepare_store_reg(reg_a0, reg_rd); \
+ generate_load_pc(rgdst, (value)); \
+ complete_store_reg(rgdst, reg_rd)
#define thumb_access_memory_load(mem_type, _rd) \
cycle_count += 2; \