arm: cortex-a9: Fix cache-line size and associativity
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 19 Aug 2014 17:56:27 +0000 (18:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Aug 2014 18:02:40 +0000 (19:02 +0100)
commitf7838b5290de03f7cb2dbee5bd1ceae67b4a5ef0
tree1ecd99b80f64f144a285fa3380d5642677245608
parent863714ba6cdc09d1a84069815dc67c8da66b0a29
arm: cortex-a9: Fix cache-line size and associativity

For A9, The cache associativity is 4 and the lines size is 32B.
Self identify in CCSIDR accordingly. Cache size remains at 16k.

QEMU doesn't emulate caches, but we should still report the correct
cache-line size to the guest. Some guests (like u-boot) complain if
the cache-line size mismatches a requested flush or invalidate
operation.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1de6bd40155a1d2f2e93e24b1b1d1d677a432641.1408346233.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.c