From: Edgar E. Iglesias Date: Thu, 1 May 2014 14:24:45 +0000 (+0100) Subject: target-arm: Make vbar_write 64bit friendly on 32bit hosts X-Git-Tag: v2.0.1~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2d37222ae82ab1f9d528e19b2ca7103f66e3542;p=thirdparty%2Fqemu.git target-arm: Make vbar_write 64bit friendly on 32bit hosts Signed-off-by: Edgar E. Iglesias Reviewed-by: Alex Bennée Message-id: 1398926097-28097-2-git-send-email-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell (cherry picked from commit fed3ffb9f157f33bc9b2b1c3ef68e710ee6b7b4b) Signed-off-by: Michael Roth --- diff --git a/target-arm/helper.c b/target-arm/helper.c index 55077ed1b68..420a66d99d3 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -632,7 +632,7 @@ static void vbar_write(CPUARMState *env, const ARMCPRegInfo *ri, * contexts. (ARMv8 would permit us to do no masking at all, but ARMv7 * requires the bottom five bits to be RAZ/WI because they're UNK/SBZP.) */ - env->cp15.c12_vbar = value & ~0x1Ful; + env->cp15.c12_vbar = value & ~0x1FULL; } static uint64_t ccsidr_read(CPUARMState *env, const ARMCPRegInfo *ri)