Commit a37ee56cb7f2094a65fff14ed5d4ff325652b802
1 parent
0c58ac1c
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
Showing
1 changed file
with
1 additions
and
1 deletions
target-sparc/helper.c
... | ... | @@ -1603,7 +1603,7 @@ void cpu_dump_state(CPUState *env, FILE *f, |
1603 | 1603 | for (i = 0; i < 32; i++) { |
1604 | 1604 | if ((i & 3) == 0) |
1605 | 1605 | cpu_fprintf(f, "%%f%02d:", i); |
1606 | - cpu_fprintf(f, " %016lf", env->fpr[i]); | |
1606 | + cpu_fprintf(f, " %016f", *(float *)&env->fpr[i]); | |
1607 | 1607 | if ((i & 3) == 3) |
1608 | 1608 | cpu_fprintf(f, "\n"); |
1609 | 1609 | } | ... | ... |