qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] linux-user: Initialize Alpha FPCR register.


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 3/3] linux-user: Initialize Alpha FPCR register.
Date: Mon, 21 Dec 2009 13:02:40 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

On 12/21/2009 02:33 AM, Aurelien Jarno wrote:
On Sat, Dec 19, 2009 at 03:17:16PM -0800, Richard Henderson wrote:
Signed-off-by: Richard Henderson<address@hidden>
---
  linux-user/main.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/linux-user/main.c b/linux-user/main.c
index 12502ad..b67662c 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -3052,6 +3052,8 @@ int main(int argc, char **argv, char **envp)
          env->ir[30] = regs->usp;
          env->pc = regs->pc;
          env->unique = regs->unique;
+        cpu_alpha_store_fpcr(env, (FPCR_INVD | FPCR_DZED | FPCR_OVFD
+                                   | FPCR_UNFD | FPCR_INED | FPCR_DNOD));
      }

This cpu initialization which does not depends on the binary being run
is usually done in target-*/translate.c, using #if defined
(CONFIG_USER_ONLY).

I didn't want to assume that bsd-user initializes the fpcr to the same value. However, they probably do. This appears to be what you wanted.


r~

Attachment: commit-fpcr.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]