qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 5/6] PPC: booke206: Check for min/max TLB entry


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 5/6] PPC: booke206: Check for min/max TLB entry size
Date: Fri, 20 Jan 2012 09:09:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 01/20/2012 04:17 AM, Alexander Graf wrote:
+    if ((size_tlb > size_max) || (size_tlb < size_max)) {

You want < size_min, and the extra parentheses look odd.

+        /* set to min size */
+        tlb->mas1&= ~MAS1_TSIZE_MASK;
+        tlb->mas1 |= size_min<<  (MAS1_TSIZE_SHIFT + 1);
+    }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]