target/i386: Verify memory operand for lcall and ljmp
commit10b8eb94c0902b58d83df84a9eeae709a3480e82
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 24 Mar 2021 16:46:50 +0000 (24 10:46 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Apr 2021 07:40:45 +0000 (1 09:40 +0200)
treedf819c641346b0c4914426ac69038ef12e395796
parent76f67bac79f6d915c7760d46c2be58731def8f03
target/i386: Verify memory operand for lcall and ljmp

These two opcodes only allow a memory operand.

Lacking the check for a register operand, we used the A0 temp
without initialization, which led to a tcg abort.

Buglink: https://bugs.launchpad.net/qemu/+bug/1921138
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210324164650.128608-1-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c