hw/usb/quirks: Use smaller types to reduce .rodata by 10KiB
commit092b6d1e885c27222a3ff929c56cb71d3f5df8ab
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 12:45:22 +0000 (5 13:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 22:02:25 +0000 (16 23:02 +0100)
tree90edc87e085f5498203a1c1adf5becf94ce6561e
parenta9d8ba2be58e067bdfbff830eb9ff438d8db7f10
hw/usb/quirks: Use smaller types to reduce .rodata by 10KiB

The USB descriptor sizes are specified as 16-bit for idVendor /
idProduct, and 8-bit for bInterfaceClass / bInterfaceSubClass /
bInterfaceProtocol. Doing so we reduce the usbredir_raw_serial_ids[]
and usbredir_ftdi_serial_ids[] arrays from 16KiB to 6KiB (size
reported on x86_64 host, building with --extra-cflags=-Os).

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/usb/quirks.c
hw/usb/quirks.h