Richard Henderson e84fcd7f66 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>
2018-11-27 15:35:19 +01:00
..
2018-11-27 15:35:15 +01:00
2018-11-27 15:35:15 +01:00
2018-11-27 15:35:15 +01:00
2018-11-27 15:35:15 +01:00
2018-11-27 15:35:15 +01:00
2018-11-27 15:35:15 +01:00
2018-08-20 00:11:06 +02:00
2018-11-27 15:35:15 +01:00