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) From: khansa@kics.edu.pk Date: Wed, 30 Nov 2011 16:07:12 +0500 Message-Id: <1322651233-30867-3-git-send-email-khansa@kics.edu.pk> In-Reply-To: <1322651233-30867-1-git-send-email-khansa@kics.edu.pk> References: <1322651233-30867-1-git-send-email-khansa@kics.edu.pk> 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, Khansa Butt , aurelien@aurel32.net 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; } -- 1.7.3.4