From: Hollis Blanchard Date: Tue, 16 Dec 2008 15:43:49 +0000 Subject: RE: [PATCH 07/11] E500 TLB emulation Message-Id: <1229442229.31337.40.camel@localhost.localdomain> List-Id: References: <1228986705-9213-8-git-send-email-yu.liu@freescale.com> In-Reply-To: <1228986705-9213-8-git-send-email-yu.liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Tue, 2008-12-16 at 18:08 +0800, Liu Yu wrote: > > > To fix this, instead of doing error-checking in all these > > sites, I would > > just mask with 1 instead of 3. > > > > If the guest instruction appoint MAS0[TLBSEL] = 2 or 3, > I think the best way is to ignore it. Masking with 1 instead of 3 will ignore it. Or do you mean completely ignore the instruction? The mask is and simpler and faster, and also perfectly legal (it was a software error to begin with). Actually, my e500 user manual (covering v1 and v2) says the TLBSEL field is only 1 bit wide, with reserved bits on either side. So masking with 1 is clearly the right solution. -- Hollis Blanchard IBM Linux Technology Center