mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
decodetree: Properly diagnose fields overflowing an insn
Previously this would result in an exception for shifting the field mask by a negative number. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
71ecf79bf4
commit
2decfc9558
5 changed files with 22 additions and 0 deletions
5
tests/decode/err_width1.decode
Normal file
5
tests/decode/err_width1.decode
Normal file
|
@ -0,0 +1,5 @@
|
|||
# This work is licensed under the terms of the GNU LGPL, version 2 or later.
|
||||
# See the COPYING.LIB file in the top-level directory.
|
||||
|
||||
# Diagnose too many bits (33 of 32)
|
||||
one 000000000000000000000000000000000
|
Loading…
Add table
Add a link
Reference in a new issue