From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnIri-0006Wn-2Q for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:45:54 -0500 Received: from [199.232.76.173] (port=42204 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnIrh-0006WD-Fy for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:45:53 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NnIrA-0005D3-Vy for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:45:53 -0500 Received: from hall.aurel32.net ([88.191.82.174]:33685) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NnIrA-0005Cm-73 for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:45:20 -0500 From: Aurelien Jarno Date: Thu, 4 Mar 2010 22:45:07 +0100 Message-Id: <1267739110-26400-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 0/3] tcg/arm: fix division List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Andrzej Zaborowski The division on TCG ARM is currently broken due to to wrong constraints: "1" and "2" are interpreted as arguments aliasing instead of constraints. This could obviously be fixed, but the division on TCG ARM becomes quite complex: for no obvious reason div2/divu2 are implemented instead of div/divu/rem/remu for no obvious reason and the code actually calls the 64-bit helpers for a 32-bit division. This patch series fixes that by allowing TCG targets to use helpers for the division in addition to the two current implementations.