Commit 1bdb68ea139143922b2887ccb337dcd9b534aa3c
1 parent
65ce8c2f
fixed sparc64 cpu fp save/restore
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2001 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
6 additions
and
7 deletions
target-sparc/cpu.h
vl.c
... | ... | @@ -4146,11 +4146,11 @@ void cpu_save(QEMUFile *f, void *opaque) |
4146 | 4146 | /* FPU */ |
4147 | 4147 | for(i = 0; i < TARGET_FPREGS; i++) { |
4148 | 4148 | union { |
4149 | - TARGET_FPREG_T f; | |
4150 | - target_ulong i; | |
4149 | + float32 f; | |
4150 | + uint32_t i; | |
4151 | 4151 | } u; |
4152 | 4152 | u.f = env->fpr[i]; |
4153 | - qemu_put_betl(f, u.i); | |
4153 | + qemu_put_be32(f, u.i); | |
4154 | 4154 | } |
4155 | 4155 | |
4156 | 4156 | qemu_put_betls(f, &env->pc); |
... | ... | @@ -4182,10 +4182,10 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) |
4182 | 4182 | /* FPU */ |
4183 | 4183 | for(i = 0; i < TARGET_FPREGS; i++) { |
4184 | 4184 | union { |
4185 | - TARGET_FPREG_T f; | |
4186 | - target_ulong i; | |
4185 | + float32 f; | |
4186 | + uint32_t i; | |
4187 | 4187 | } u; |
4188 | - u.i = qemu_get_betl(f); | |
4188 | + u.i = qemu_get_be32(f); | |
4189 | 4189 | env->fpr[i] = u.f; |
4190 | 4190 | } |
4191 | 4191 | ... | ... |