gt64xxx: fix decoding of ISD register
commit63fc7375d6b0a083aef56950119af3d1d2a96e51
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Nov 2015 15:34:06 +0000 (6 16:34 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Dec 2015 06:39:55 +0000 (4 09:39 +0300)
tree8cdfeac2cc8a5764bc48ddb69288526eacdcdbdd
parentfccd35a04640a728f979e6d72b2c7d02c05549f0
gt64xxx: fix decoding of ISD register

The GT64xxx's internal registers can be placed above the first 4 GiB
in the address space, but not above the first 64 GiB.  Correctly cast
the register to a 64-bit integer, and mask away bits above bit 35.

Datasheet at http://pdf.datasheetarchive.com/datasheetsmain/Datasheets-33/DSA-655889.pdf
(bug reported by Coverity).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/mips/gt64xxx_pci.c