From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7X6F-0007SE-2N for qemu-devel@nongnu.org; Tue, 02 Dec 2008 10:23:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7X6D-0007RD-OU for qemu-devel@nongnu.org; Tue, 02 Dec 2008 10:23:42 -0500 Received: from [199.232.76.173] (port=48074 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7X6D-0007R9-FX for qemu-devel@nongnu.org; Tue, 02 Dec 2008 10:23:41 -0500 Received: from ug-out-1314.google.com ([66.249.92.170]:25188) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7X6D-0003Yu-4c for qemu-devel@nongnu.org; Tue, 02 Dec 2008 10:23:41 -0500 Received: by ug-out-1314.google.com with SMTP id 29so3088415ugc.36 for ; Tue, 02 Dec 2008 07:23:40 -0800 (PST) Message-ID: <761ea48b0812020723w57f64c1fn3c0c033b7350a0f8@mail.gmail.com> Date: Tue, 2 Dec 2008 16:23:39 +0100 From: "Laurent Desnogues" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] [RFD] TCG context 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 Hello, a few months ago I proposed a patch that puts gen_opc_ptr and gen_opparam_ptr into TCG context: http://lists.gnu.org/archive/html/qemu-devel/2008-07/msg00869.html After discussing with Fabrice, it's useless without getting rid of the global TCG context variable. I fully agree with him. Obviously getting rid of TCG context variable means passing it as a parameter to every TCG function which is a rather intrusive and painful task, though it's mechanical enough that introducing bugs is not a concern. I also think that some of the other global variables could benefit from being put into that context (e.g., gen_opc_buf, gen_opparam_buf). That could come later and is much less intrusive. I have done all of that for my own needs for one target. Are some people interested enough that I make this for all targets? Laurent