diff options
author | Gerd Hoffmann | 2020-11-05 14:41:12 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2020-11-16 09:11:21 +0100 |
commit | c590fe3aa23acb923159c41c741dd694cba9c544 (patch) | |
tree | 8810017e0b4db25f28955e18543b12ddd48343f7 /disas/lm32.c | |
parent | xhci: fix guest triggerable assert (diff) | |
download | qemu-c590fe3aa23acb923159c41c741dd694cba9c544.tar.gz qemu-c590fe3aa23acb923159c41c741dd694cba9c544.tar.xz qemu-c590fe3aa23acb923159c41c741dd694cba9c544.zip |
xhci: move sanity checks
The v variable goes negative for reg < 0x20. Reorder the code
to first sanity check then calculate v and assign intr to make
sanity checkers happy.
Buglink: https://bugs.launchpad.net/qemu/+bug/1902112
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201105134112.25119-7-kraxel@redhat.com
Diffstat (limited to 'disas/lm32.c')
0 files changed, 0 insertions, 0 deletions