From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuEsF-000852-7H for qemu-devel@nongnu.org; Sun, 26 Oct 2008 19:18:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuEsD-00081y-0Q for qemu-devel@nongnu.org; Sun, 26 Oct 2008 19:18:17 -0400 Received: from [199.232.76.173] (port=34944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuEsC-00081v-RZ for qemu-devel@nongnu.org; Sun, 26 Oct 2008 19:18:16 -0400 Received: from savannah.gnu.org ([199.232.41.3]:52039 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuEsC-0003gd-DI for qemu-devel@nongnu.org; Sun, 26 Oct 2008 19:18:16 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KuEs9-0003zm-0j for qemu-devel@nongnu.org; Sun, 26 Oct 2008 23:18:13 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KuEs7-0003zf-BG for qemu-devel@nongnu.org; Sun, 26 Oct 2008 23:18:12 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Sun, 26 Oct 2008 23:18:11 +0000 Subject: [Qemu-devel] [5545] CRIS: Correct tcg globals allocation for 64bit hosts. 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 Revision: 5545 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5545 Author: edgar_igl Date: 2008-10-26 23:18:06 +0000 (Sun, 26 Oct 2008) Log Message: ----------- CRIS: Correct tcg globals allocation for 64bit hosts. Signed-off-by: Edgar E. Iglesias Modified Paths: -------------- trunk/target-cris/translate.c Modified: trunk/target-cris/translate.c =================================================================== --- trunk/target-cris/translate.c 2008-10-26 20:33:16 UTC (rev 5544) +++ trunk/target-cris/translate.c 2008-10-26 23:18:06 UTC (rev 5545) @@ -3347,41 +3347,41 @@ cpu_T[1] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG2, "T1"); #endif - cc_x = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_x = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_x), "cc_x"); - cc_src = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_src = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_src), "cc_src"); - cc_dest = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_dest = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_dest), "cc_dest"); - cc_result = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_result = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_result), "cc_result"); - cc_op = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_op = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_op), "cc_op"); - cc_size = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_size = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_size), "cc_size"); - cc_mask = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cc_mask = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, cc_mask), "cc_mask"); - env_pc = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + env_pc = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, pc), "pc"); - env_btarget = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + env_btarget = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, btarget), "btarget"); - env_btaken = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + env_btaken = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, btaken), "btaken"); for (i = 0; i < 16; i++) { - cpu_R[i] = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cpu_R[i] = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, regs[i]), regnames[i]); } for (i = 0; i < 16; i++) { - cpu_PR[i] = tcg_global_mem_new(TCG_TYPE_PTR, TCG_AREG0, + cpu_PR[i] = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, pregs[i]), pregnames[i]); }