提交 a37ee56c 编写于 作者: B blueswir1

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
上级 0c58ac1c
...@@ -1603,7 +1603,7 @@ void cpu_dump_state(CPUState *env, FILE *f, ...@@ -1603,7 +1603,7 @@ void cpu_dump_state(CPUState *env, FILE *f,
for (i = 0; i < 32; i++) { for (i = 0; i < 32; i++) {
if ((i & 3) == 0) if ((i & 3) == 0)
cpu_fprintf(f, "%%f%02d:", i); 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) if ((i & 3) == 3)
cpu_fprintf(f, "\n"); cpu_fprintf(f, "\n");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册