x86/asm/decoder: Explain CALLW discrepancy between Intel and AMD
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 12 Feb 2015 19:06:57 +0000 (20:06 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Feb 2015 20:01:59 +0000 (21:01 +0100)
commitcbb53b9623a70f012e1fdfb6fc0af6878df4762b
treec7cdaefe10cb242f20ee4c02da6bc36188740ca8
parent8a764a875fe3cf3a83296bacd00bfc41917e95e2
x86/asm/decoder: Explain CALLW discrepancy between Intel and AMD

In 64-bit mode, AMD and Intel CPUs treat 0x66 prefix before
branch insns differently. For near branches, it affects decode
too since immediate offset's width is different.

See these empirical tests:

  http://marc.info/?l=linux-kernel&m=139714939728946&w=2

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/1423768017-31766-1-git-send-email-dvlasenk@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/lib/x86-opcode-map.txt