Re: [Qemu-devel] [PATCH 6/8] PPC: booke: add tlbnps handling

2012-01-23 Thread Alexander Graf
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) { +

Re: [Qemu-devel] [PATCH 6/8] PPC: booke: add tlbnps handling

2012-01-23 Thread Scott Wood
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

[Qemu-devel] [PATCH 6/8] PPC: booke: add tlbnps handling

2012-01-20 Thread Alexander Graf
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