From owner-freebsd-mips@FreeBSD.ORG Tue Apr 29 11:49:45 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 507071065675 for ; Tue, 29 Apr 2008 11:49:45 +0000 (UTC) (envelope-from xylnao@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 219398FC31 for ; Tue, 29 Apr 2008 11:49:45 +0000 (UTC) (envelope-from xylnao@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so4414114wfa.7 for ; Tue, 29 Apr 2008 04:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=laebaN3RcdMvrM2JfORc1AOPLQzNa5WIA/JcDo0WaXM=; b=X/sW6iOeNQjiy0BQJghWWQqasW+jvK6fV3S02Qb5dHQnx3t2DV99pNC+jNsqGMPK/mhb3/FBL3YEADI9tXZT6I+TBrFt0Rh2rgn+E5Pyq9be2rob21/PCawYeeJ6vvTyJPjBzDfYj5fzNJzD5+rfQq4k01+y/iDBAHLNZuPxZcU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=INjX896kNnLDrm4VXmnrmqf1TMXhyIIsFKD4xkSlNbeRlx4/Kwa0Q6fQi/ROSjS7dYddWWvm9bbI09rTwPwXch85QOoD2udlroc8iO2H3Bsi1eY82+xcGCS5bBZ/0StsgE133uOntd/DN7JKKEfRXTCslwjGRUsr0x0IolYzWqk= Received: by 10.143.29.17 with SMTP id g17mr399668wfj.239.1209469784847; Tue, 29 Apr 2008 04:49:44 -0700 (PDT) Received: by 10.142.11.20 with HTTP; Tue, 29 Apr 2008 04:49:44 -0700 (PDT) Message-ID: <2da2ec620804290449u5d85a44dtc84b6c1c202759e3@mail.gmail.com> Date: Tue, 29 Apr 2008 20:49:44 +0900 From: "Naoki Hamada" Sender: xylnao@gmail.com To: freebsd-mips@freebsd.org In-Reply-To: <20080426.232158.1683324026.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2da2ec620804222103r7e90af37j2d36b0f0bc049abb@mail.gmail.com> <20080426.232158.1683324026.imp@bsdimp.com> X-Google-Sender-Auth: e60ffcd08e94ba84 Subject: Re: minor fix for tlb manipulations X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 11:49:45 -0000 Hello, I now realized that I was wrong, and why I was wrong. I have got the idea of the fix when I was tracing the execution of FreeBSD/mips on an AMD5120 system emulated by virtualmips (on Linux!). Its CONFIG1 register shows that there are 32 tlb 'entries', but actually a genuine ADM5120 tells that there are only 16 'entries'. I hastily assumed that this emulator worked correctly, and got wrong conclusion. I will report virtualmips guys this story. Moral: be careful about emulators. They are merely feeble softwares. Naoki Hamada nao@tom-yam.or.jp