From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] qemu vl.c target-sparc/cpu.h
Date: Wed, 21 Jun 2006 18:48:04 +0000 [thread overview]
Message-ID: <E1Ft7kC-0005PE-5f@savannah.gnu.org> (raw)
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/21 18:48:02
Modified files:
. : vl.c
target-sparc : cpu.h
Log message:
fixed sparc64 cpu fp save/restore
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.189&r2=1.190
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/cpu.h?cvsroot=qemu&r1=1.22&r2=1.23
Patches:
Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -b -r1.189 -r1.190
--- vl.c 14 Jun 2006 17:32:25 -0000 1.189
+++ vl.c 21 Jun 2006 18:48:00 -0000 1.190
@@ -4146,11 +4146,11 @@
/* FPU */
for(i = 0; i < TARGET_FPREGS; i++) {
union {
- TARGET_FPREG_T f;
- target_ulong i;
+ float32 f;
+ uint32_t i;
} u;
u.f = env->fpr[i];
- qemu_put_betl(f, u.i);
+ qemu_put_be32(f, u.i);
}
qemu_put_betls(f, &env->pc);
@@ -4182,10 +4182,10 @@
/* FPU */
for(i = 0; i < TARGET_FPREGS; i++) {
union {
- TARGET_FPREG_T f;
- target_ulong i;
+ float32 f;
+ uint32_t i;
} u;
- u.i = qemu_get_betl(f);
+ u.i = qemu_get_be32(f);
env->fpr[i] = u.f;
}
Index: target-sparc/cpu.h
===================================================================
RCS file: /sources/qemu/qemu/target-sparc/cpu.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- target-sparc/cpu.h 21 Jun 2006 18:37:05 -0000 1.22
+++ target-sparc/cpu.h 21 Jun 2006 18:48:01 -0000 1.23
@@ -12,7 +12,6 @@
#define TARGET_FPREGS 64
#define TARGET_PAGE_BITS 12 /* XXX */
#endif
-#define TARGET_FPREG_T float32
#include "cpu-defs.h"
reply other threads:[~2006-06-21 18:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Ft7kC-0005PE-5f@savannah.gnu.org \
--to=fabrice@bellard.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).