linux-user: arm: Remove ARM_cpsr and similar #defines
commit167e4cdc29985e69769452fade698c5b9df78b3d
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Mar 2016 12:11:18 +0000 (3 12:11 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 27 May 2016 11:50:39 +0000 (27 14:50 +0300)
treece261e1dadc5d1dbdaafbe47da1382ef9d09141c
parentfd6f7798ac3066ad9e3956defd37521830197666
linux-user: arm: Remove ARM_cpsr and similar #defines

The #defines of ARM_cpsr and friends in linux-user/arm/target-syscall.h
can clash with versions in the system headers if building on an
ARM or AArch64 build (though this seems to be dependent on the version
of the system headers). The QEMU defines are not very useful (it's
not clear that they're intended for use with the target_pt_regs struct
rather than (say) the CPUARMState structure) and we only use them in one
function in elfload.c anyway. So just remove the #defines and directly
access regs->uregs[].

Reported-by: Christopher Covington <cov@codeaurora.org>
Tested-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/arm/target_syscall.h
linux-user/elfload.c