diff options
-rw-r--r-- | target-i386/ops_template_mem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-i386/ops_template_mem.h b/target-i386/ops_template_mem.h index 1b83536..ea73c96 100644 --- a/target-i386/ops_template_mem.h +++ b/target-i386/ops_template_mem.h @@ -442,12 +442,12 @@ void OPPROTO glue(glue(op_cmpxchg, MEM_SUFFIX), _T0_T1_EAX_cc)(void) dst = EAX - T0; if ((DATA_TYPE)dst == 0) { T0 = T1; +#ifdef MEM_WRITE + glue(st, MEM_SUFFIX)((uint8_t *)A0, T0); +#endif } else { EAX = (EAX & ~DATA_MASK) | (T0 & DATA_MASK); } -#ifdef MEM_WRITE - glue(st, MEM_SUFFIX)((uint8_t *)A0, T0); -#endif CC_SRC = src; CC_DST = dst; FORCE_RET(); |