s390x/ipl: avoid sign extension
commitfa92e218df1d7fcc01e1e5d8bbd77acdaf53c18b
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 26 Mar 2015 09:41:45 +0000 (26 10:41 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 30 Mar 2015 07:25:17 +0000 (30 09:25 +0200)
tree99f6cb08298023bdb24d0cdea19fe78375fc92ee
parentf65025caab916aa8a5b8de270a59078e0b6e2866
s390x/ipl: avoid sign extension

Make s390_update_iplstate() return uint32_t to avoid sign extensions
for cssids > 127. While this doesn't matter in practice yet (as
nobody supports MCSS-E and thus won't see the real cssid), play safe.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/ipl.c