]> xenbits.xensource.com Git - qemu-upstream-4.6-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)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 1 May 2014 14:24:45 +0000 (15:24 +0100)
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>
target-arm/helper.c

index 7c083c33a05e43456643cdb8c33a3b60f52a7fab..7823e8c3dd839e23ca52adee2022b1f9e8cb9ee5 100644 (file)
@@ -657,7 +657,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)