diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-04-03 14:21:47 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-04-26 12:21:15 +0200 |
commit | 8a771f77e2abfb81f1f33a986810c16ecae54ca7 (patch) | |
tree | bb6499c89aea22cfed0809add4b6b43e34d9ed7a /hw/pcie_regs.h | |
parent | 0cc6a0f19e3de830eaa898ad31c0bc607470b8cb (diff) | |
download | qemu-8a771f77e2abfb81f1f33a986810c16ecae54ca7.zip qemu-8a771f77e2abfb81f1f33a986810c16ecae54ca7.tar.gz qemu-8a771f77e2abfb81f1f33a986810c16ecae54ca7.tar.bz2 |
usb-ehci: Ensure frindex writes leave a valid frindex value
frindex is a 14 bits counter, so bits 31-14 should always be 0, and
after the commit titled "usb-ehci: frindex always is a 14 bits counter"
we rely on frindex always being a multiple of 8. I've not seen this in
practice, but theoretically a guest can write a value >= 0x4000 or a value
which is not a multiple of 8 value to frindex, this patch ensures that
things will still work when that happens.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/pcie_regs.h')
0 files changed, 0 insertions, 0 deletions