qemu/hw/ide
Peter Maydell 40fe17bea4 hw/ide/ahci.c: Fix shift left into sign bit
Avoid undefined behaviour from shifting left into the sign bit:

hw/ide/ahci.c:551:36: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'

(Unfortunately C's promotion rules mean that in the expression
"some_uint8_t_variable << 24" the LHS gets promoted to signed
int before shifting.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: John Snow <jsnow@redhat.com>
2015-10-18 11:00:40 +01:00
..
ahci.c hw/ide/ahci.c: Fix shift left into sign bit 2015-10-18 11:00:40 +01:00
ahci.h
atapi.c atapi: abort transfers with 0 byte limits 2015-09-18 10:58:56 -04:00
cmd646.c
core.c atapi: abort transfers with 0 byte limits 2015-09-18 10:58:56 -04:00
ich.c
internal.h atapi: abort transfers with 0 byte limits 2015-09-18 10:58:56 -04:00
isa.c
macio.c
Makefile.objs
microdrive.c
mmio.c
pci.c
pci.h
piix.c
qdev.c
via.c