]> Git Repo - qemu.git/commit - hw/s390x/css.c
s390x/css: sense data endianness
authorCornelia Huck <[email protected]>
Wed, 4 Nov 2015 17:40:54 +0000 (18:40 +0100)
committerCornelia Huck <[email protected]>
Wed, 11 Nov 2015 16:21:38 +0000 (17:21 +0100)
commitb498484ed49ab9d1fcada3468f95dda1a5f59366
tree6a09ceff242d677ac896de65ab14dafa5fb35e03
parent3c07587d49458341510360557c849e93e9afaf59
s390x/css: sense data endianness

We keep the device's sense data in a byte array (following the
architecture), but the ecws are an array of 32 bit values. If we
just blindly copy the values, the sense data will change from
de-facto BE data to de-facto cpu-endian data, which means we end
up doing an incorrect conversion on LE hosts.

Let's just explicitly convert to cpu-endianness while assembling
the irb.

Reported-by: Andy Lutomirski <[email protected]>
Tested-by: Andy Lutomirski <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
hw/s390x/css.c
This page took 0.02563 seconds and 4 git commands to generate.