Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IckPn-00044L-1S for qemu-devel@nongnu.org; Tue, 02 Oct 2007 12:16:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IckPl-000418-2K for qemu-devel@nongnu.org; Tue, 02 Oct 2007 12:16:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IckPk-00040i-RL for qemu-devel@nongnu.org; Tue, 02 Oct 2007 12:16:04 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IckPj-00040F-U5 for qemu-devel@nongnu.org; Tue, 02 Oct 2007 12:16:04 -0400 From: Clemens Kolbitsch Date: Tue, 2 Oct 2007 18:15:58 +0200 References: <20070929150426.3890gmx1@mx069.gmx.net> In-Reply-To: <20070929150426.3890gmx1@mx069.gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710021815.58472.clemens.kol@gmx.at> Subject: [Qemu-devel] softmmu_header: ldb_kernel vs. ldsb_kernel Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org hi everyone! i have a (maybe rather tricky) question: why do you define 2 different inline load-functions in softmmu_header: static inline int glue(glue(lds, SUFFIX), MEMSUFFIX)(target_ulong ptr) vs. static inline RES_TYPE glue(glue(ld, USUFFIX), MEMSUFFIX)(target_ulong ptr) ?? Obviously this is for signed/unsigned access... but why do you need it? In case there is a TLB miss, both functions call the same function (e.g. __ldl_mmu) --> the return value cannot differ that much. 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. 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)?? Thanks!! Clemens