]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
target-arm: Make vbar_write 64bit friendly on 32bit hosts
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Thu, 1 May 2014 14:24:45 +0000 (15:24 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Jul 2014 03:16:25 +0000 (22:16 -0500)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1398926097-28097-2-git-send-email-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit fed3ffb9f157f33bc9b2b1c3ef68e710ee6b7b4b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-arm/helper.c

index 55077ed1b68481a5d2c43fc23f8fa3961d009313..420a66d99d3c3c2bdacc91293a8f063724d8fda8 100644 (file)
@@ -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)