target/i386: Generate #UD when applying LOCK to a register destination
commite84fcd7f662a0d8198703f6f89416d7ac2c32767
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 13 Nov 2018 19:35:10 +0000 (13 20:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 14:35:19 +0000 (27 15:35 +0100)
treec3ffcf72cb4937a7f3eaab3b0633337f32355f8a
parentf1e35acf787d22ef98906a9a375a400e0df3d55f
target/i386: Generate #UD when applying LOCK to a register destination

Fixes a TCG crash due to attempting the atomic operation without
having set up the address first.  This does not attempt to fix
all of the other missing checks for LOCK.

Fixes: a7cee522f35
Fixes: https://bugs.launchpad.net/qemu/+bug/1803160
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20181113193510.24862-1-richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/translate.c