From patchwork Wed Nov 30 11:07:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khansa Butt X-Patchwork-Id: 128476 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6CFB31007DB for ; Wed, 30 Nov 2011 21:57:32 +1100 (EST) Received: from localhost ([::1]:54366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVhr0-00076n-03 for incoming@patchwork.ozlabs.org; Wed, 30 Nov 2011 05:57:30 -0500 Received: from eggs.gnu.org ([140.186.70.92]:60617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVhqu-00076V-0a for qemu-devel@nongnu.org; Wed, 30 Nov 2011 05:57:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVhqs-0007Pk-TI for qemu-devel@nongnu.org; Wed, 30 Nov 2011 05:57:23 -0500 Received: from mail-gy0-f173.google.com ([209.85.160.173]:63794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVhqs-0007PZ-OO for qemu-devel@nongnu.org; Wed, 30 Nov 2011 05:57:22 -0500 Received: by ghbg19 with SMTP id g19so612924ghb.4 for ; Wed, 30 Nov 2011 02:57:17 -0800 (PST) Received: by 10.236.180.200 with SMTP id j48mr2590232yhm.26.1322650637041; Wed, 30 Nov 2011 02:57:17 -0800 (PST) Received: from localhost.localdomain ([111.68.102.16]) by mx.google.com with ESMTPS id 36sm4642167anz.2.2011.11.30.02.57.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 02:57:16 -0800 (PST) From: khansa@kics.edu.pk To: qemu-devel@nongnu.org Date: Wed, 30 Nov 2011 16:07:12 +0500 Message-Id: <1322651233-30867-3-git-send-email-khansa@kics.edu.pk> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1322651233-30867-1-git-send-email-khansa@kics.edu.pk> References: <1322651233-30867-1-git-send-email-khansa@kics.edu.pk> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.173 Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, Khansa Butt , aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 2/3] target-mips:enabling of 64 bit user mode and floating point operations MIPS_HFLAG_UX is included in env->hflags so that the address computation for LD instruction does not treated as 32 bit code see gen_op_addr_add() in translate.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Khansa Butt Signed-off-by: Khansa Butt --- target-mips/translate.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index d5b1c76..452a63b 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -12779,6 +12779,10 @@ void cpu_reset (CPUMIPSState *env) env->hflags |= MIPS_HFLAG_FPU; } #ifdef TARGET_MIPS64 + env->hflags |= MIPS_HFLAG_UX; + /* if cpu has FPU, MIPS_HFLAG_F64 must be included in env->hflags + so that floating point operations can be emulated */ + env->active_fpu.fcr0 = env->cpu_model->CP1_fcr0; if (env->active_fpu.fcr0 & (1 << FCR0_F64)) { env->hflags |= MIPS_HFLAG_F64; }