On 01/23/2012 06:29 PM, Scott Wood wrote:
On 01/20/2012 10:15 PM, Alexander Graf wrote:
+/* returns bitmap of supported page sizes for a given TLB */
+static inline uint32_t booke206_tlbnps(CPUState *env, const int tlbn)
+{
+bool mav2 = false;
+uint32_t ret = 0;
+
+if (mav2) {
+
On 01/20/2012 10:15 PM, Alexander Graf wrote:
> +/* returns bitmap of supported page sizes for a given TLB */
> +static inline uint32_t booke206_tlbnps(CPUState *env, const int tlbn)
> +{
> +bool mav2 = false;
> +uint32_t ret = 0;
> +
> +if (mav2) {
> +ret = env->spr[SPR_BOOKE_T
When using MAV 2.0 TLB registers, we have another range of TLB registers
available to read the supported page sizes from.
Add SPR definitions for those and add a helper function that we can use
to receive such a bitmap even when using MAV 1.0.
Signed-off-by: Alexander Graf
---
target-ppc/cpu.h