target-arm/arm-semi.c: Fix SYS_HEAPINFO for 64-bit guests
commitf5666418c449b49917ea24cdb0bed76a602a3c74
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Jul 2016 12:06:35 +0000 (4 13:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Jul 2016 12:06:35 +0000 (4 13:06 +0100)
treea26c728db9e1b08f9a4436f6f5d33341173a158b
parentd317091d5ed616328ef5a7b8502167c4e7de8e6b
target-arm/arm-semi.c: Fix SYS_HEAPINFO for 64-bit guests

SYS_HEAPINFO is one of the few semihosting calls which has to write
values back into a parameter block in memory.  When we added
support for 64-bit semihosting we updated the code which reads from
the parameter block to read 64-bit words but forgot to change the
code that writes back into the block. Update it to treat the
block as a set of words of the appropriate width for the guest.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1466783381-29506-3-git-send-email-peter.maydell@linaro.org
target-arm/arm-semi.c