Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IclCO-0002Ps-2A for qemu-devel@nongnu.org; Tue, 02 Oct 2007 13:06:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IclCL-0002Ib-3O for qemu-devel@nongnu.org; Tue, 02 Oct 2007 13:06:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IclCK-0002Hp-9F for qemu-devel@nongnu.org; Tue, 02 Oct 2007 13:06:16 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IclCJ-000841-Mp for qemu-devel@nongnu.org; Tue, 02 Oct 2007 13:06:16 -0400 From: Clemens Kolbitsch Subject: Re: [Qemu-devel] softmmu_header: ldb_kernel vs. ldsb_kernel Date: Tue, 2 Oct 2007 19:06:10 +0200 References: <20070929150426.3890gmx1@mx069.gmx.net> <200710021815.58472.clemens.kol@gmx.at> <20071002165055.GI16772@networkno.de> In-Reply-To: <20071002165055.GI16772@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710021906.11035.clemens.kol@gmx.at> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thiemo Seufer Cc: qemu-devel@nongnu.org > > The only difference I see (that really matters) is how the bytes are > > copied to the result-pointer (i.e. using movzbl vs. movsbl)... but that's > > it. > > It is a cast. The generic C version for the other architectures makes > this more obvious. > > > If there is some deeper reason behind that - could you please point that > > out to me? And if there is such a thing, why is it not necessary for > > storing (e.g. stb_kernel)?? > > A load (sign-)extends a value to register size, a store doesn't. > > That's why you have e.g. in the MIPS instruction set LB, LBU and SB > but no SBU, it would do the same as SB. all right .. thanks for the fast answer :-)