target-arm/arm-semi.c: Support widening APIs to 64 bits
commitfaacc041619581c566c21ed87aa1933420731282
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Sep 2015 09:39:28 +0000 (7 10:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Sep 2015 09:39:28 +0000 (7 10:39 +0100)
treef29baeddbbf71d2b6b7a9906045e87ea09d03ce6
parent44d4a499b79d12d5c29f32bf2070c89335573c03
target-arm/arm-semi.c: Support widening APIs to 64 bits

The 64-bit A64 semihosting API has some pervasive changes from
the 32-bit version:
 * all parameter blocks are arrays of 64-bit values, not 32-bit
 * the semihosting call number is passed in W0
 * the return value is a 64-bit value in X0

Implement the necessary handling for this widening.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Christopher Covington <christopher.covington@linaro.org>
Tested-by: Christopher Covington <cov@codeaurora.org>
Message-id: 1439483745-28752-7-git-send-email-peter.maydell@linaro.org
target-arm/arm-semi.c
target-arm/cpu.h