diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-06-21 18:48:01 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-06-21 18:48:01 +0000 |
commit | 1bdb68ea139143922b2887ccb337dcd9b534aa3c (patch) | |
tree | cab52f66195d38feaadf5606741804ded0e73404 | |
parent | 65ce8c2fb438c8685dbcd28784a0b0ba2b484e5f (diff) |
fixed sparc64 cpu fp save/restore
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2001 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | target-sparc/cpu.h | 1 | ||||
-rw-r--r-- | vl.c | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index c6d5621b11..90f6fb23d8 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -12,7 +12,6 @@ #define TARGET_FPREGS 64 #define TARGET_PAGE_BITS 12 /* XXX */ #endif -#define TARGET_FPREG_T float32 #include "cpu-defs.h" @@ -4146,11 +4146,11 @@ void cpu_save(QEMUFile *f, void *opaque) /* 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 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) /* 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; } |