public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Typo transferred from Intel manual
@ 2012-01-13 22:24 Ulrich Drepper
  2012-01-16  0:28 ` Masami Hiramatsu
  2012-01-16  0:31 ` Masami Hiramatsu
  0 siblings, 2 replies; 6+ messages in thread
From: Ulrich Drepper @ 2012-01-13 22:24 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Thomas Gleixner, Ingo Molnar,
	H. Peter Anvin, x86, Masami Hiramatsu

The arch/x86/lib/x86-opcode-map.txt file contains the line

af: SCAS/W/D/Q rAX,Xv


This is what the Intel manuals show, but it's not correct.  The 'X' stands for

Memory addressed by the DS:rSI register pair (for example, MOVS, CMPS,
OUTS, or LODS).


On the other hand 'Y' means (also see the ae byte entry for SCASB):

Memory addressed by the ES:rDI register pair (for example, MOVS, CMPS,
INS, STOS, or SCAS).


Hence the following patch should be applied:



Signed-off-by: Ulrich Drepper <drepper@gmail.com>

diff --git a/arch/x86/lib/x86-opcode-map.txt b/arch/x86/lib/x86-opcode-map.txt
index 5b83c51..c292885 100644
--- a/arch/x86/lib/x86-opcode-map.txt
+++ b/arch/x86/lib/x86-opcode-map.txt
@@ -219,7 +219,7 @@ ab: STOS/W/D/Q Yv,rAX
 ac: LODS/B AL,Xb
 ad: LODS/W/D/Q rAX,Xv
 ae: SCAS/B AL,Yb
-af: SCAS/W/D/Q rAX,Xv
+af: SCAS/W/D/Q rAX,Yv
 # 0xb0 - 0xbf
 b0: MOV AL/R8L,Ib
 b1: MOV CL/R9L,Ib

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-16  9:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 22:24 Typo transferred from Intel manual Ulrich Drepper
2012-01-16  0:28 ` Masami Hiramatsu
2012-01-16  0:31 ` Masami Hiramatsu
2012-01-16  0:40   ` Ulrich Drepper
2012-01-16  8:41     ` Masami Hiramatsu
2012-01-16  9:02     ` [tip:perf/urgent] x86/kprobes: Fix typo " tip-bot for Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox