Add support for warning on invalid LOCK prefixes
commit8cc8a1d8367f87c722c44d7584303f90b22ee6d0
authorH. Peter Anvin <hpa@zytor.com>
Sat, 25 Feb 2012 19:11:42 +0000 (25 11:11 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 25 Feb 2012 19:11:42 +0000 (25 11:11 -0800)
treeeea7f8ea919c7b9ed557df124334ddca6a988982
parent8ea220041503fb48876b0af35934740fe2613ec2
Add support for warning on invalid LOCK prefixes

Add an LOCK flag to the instruction template, and make the presence of
a LOCK prefix trigger a warning if it is not set.  Simplify the LOCK
and HLE logic by hard-coding the knowledge that operand 0 has to be
memory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
assemble.c
insns.h