x86: tighten condition for emitting LOCK on control register accesses
authorJan Beulich <jbeulich@novell.com>
Fri, 1 Jun 2018 06:38:36 +0000 (08:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Jun 2018 06:38:36 +0000 (08:38 +0200)
commite0c7f900259ee54a6fdbc5d4103f30209dbec1bc
treeada8c61921ab90c4c7a193badf970b2406da78ed
parent647957107595c7f8209686577739240b7a222aba
x86: tighten condition for emitting LOCK on control register accesses

The control register is never expressed by REX.B; this bit only affects
the involved GPR. Also only one of the operands can have its "control"
flag set, so only check the correct operand.
gas/ChangeLog
gas/config/tc-i386.c