From 9de271f04a238665b448851ccf07330a2e5f5b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Fri, 25 Sep 2009 20:47:15 +0000 Subject: [PATCH] re: cmpxchg (comment added) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3470 --- src/cpu/core_normal/prefix_0f.h | 4 ++-- src/cpu/core_normal/prefix_66_0f.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpu/core_normal/prefix_0f.h b/src/cpu/core_normal/prefix_0f.h index 1292396f..ff809886 100644 --- a/src/cpu/core_normal/prefix_0f.h +++ b/src/cpu/core_normal/prefix_0f.h @@ -377,7 +377,7 @@ SaveMb(eaa,*rmrb); SETFLAGBIT(ZF,1); } else { - SaveMb(eaa,val); //NEEDED ? (val doesn't change + SaveMb(eaa,val); // cmpxchg always issues a write reg_al = val; SETFLAGBIT(ZF,0); } @@ -405,7 +405,7 @@ SaveMw(eaa,*rmrw); SETFLAGBIT(ZF,1); } else { - SaveMw(eaa,val); + SaveMw(eaa,val); // cmpxchg always issues a write reg_ax = val; SETFLAGBIT(ZF,0); } diff --git a/src/cpu/core_normal/prefix_66_0f.h b/src/cpu/core_normal/prefix_66_0f.h index f2180309..1563050b 100644 --- a/src/cpu/core_normal/prefix_66_0f.h +++ b/src/cpu/core_normal/prefix_66_0f.h @@ -256,7 +256,7 @@ SaveMd(eaa,*rmrd); SETFLAGBIT(ZF,1); } else { - SaveMd(eaa,val); + SaveMd(eaa,val); // cmpxchg always issues a write reg_eax=val; SETFLAGBIT(ZF,0); }