aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/helper.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-26 18:43:24 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-26 18:43:24 +0000
commita37ee56cb7f2094a65fff14ed5d4ff325652b802 (patch)
treeff546aeded3fc7a6041778db9e15e719995cd600 /target-sparc/helper.c
parent0c58ac1c76603ce639e419cedd16cfcdcd813045 (diff)
downloadqemu-a37ee56cb7f2094a65fff14ed5d4ff325652b802.zip
qemu-a37ee56cb7f2094a65fff14ed5d4ff325652b802.tar.gz
qemu-a37ee56cb7f2094a65fff14ed5d4ff325652b802.tar.bz2
Fix bogus format, reading uninitialised memory (original patch by Julian Seward)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4793 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/helper.c')
-rw-r--r--target-sparc/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index a3e50bd..1cfe170 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -1603,7 +1603,7 @@ void cpu_dump_state(CPUState *env, FILE *f,
for (i = 0; i < 32; i++) {
if ((i & 3) == 0)
cpu_fprintf(f, "%%f%02d:", i);
- cpu_fprintf(f, " %016lf", env->fpr[i]);
+ cpu_fprintf(f, " %016f", *(float *)&env->fpr[i]);
if ((i & 3) == 3)
cpu_fprintf(f, "\n");
}