mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
C99 64 bit printf
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2018 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3b42c9794c
commit
26a76461f2
25 changed files with 67 additions and 64 deletions
|
@ -2443,12 +2443,12 @@ void cpu_dump_state(CPUState *env, FILE *f,
|
|||
{
|
||||
#if defined(TARGET_PPC64) || 1
|
||||
#define FILL ""
|
||||
#define REGX "%016llx"
|
||||
#define REGX "%016" PRIx64
|
||||
#define RGPL 4
|
||||
#define RFPL 4
|
||||
#else
|
||||
#define FILL " "
|
||||
#define REGX "%08llx"
|
||||
#define REGX "%08" PRIx64
|
||||
#define RGPL 8
|
||||
#define RFPL 4
|
||||
#endif
|
||||
|
@ -2485,7 +2485,7 @@ void cpu_dump_state(CPUState *env, FILE *f,
|
|||
for (i = 0; i < 32; i++) {
|
||||
if ((i & (RFPL - 1)) == 0)
|
||||
cpu_fprintf(f, "FPR%02d", i);
|
||||
cpu_fprintf(f, " %016llx", *((uint64_t *)&env->fpr[i]));
|
||||
cpu_fprintf(f, " %016" PRIx64, *((uint64_t *)&env->fpr[i]));
|
||||
if ((i & (RFPL - 1)) == (RFPL - 1))
|
||||
cpu_fprintf(f, "\n");
|
||||
}
|
||||
|
|
|
@ -252,7 +252,7 @@ static inline void spr_register (CPUPPCState *env, int num,
|
|||
exit(1);
|
||||
}
|
||||
#if defined(PPC_DEBUG_SPR)
|
||||
printf("*** register spr %d (%03x) %s val %08llx\n", num, num, name,
|
||||
printf("*** register spr %d (%03x) %s val %08" PRIx64 "\n", num, num, name,
|
||||
(unsigned long long)initial_value);
|
||||
#endif
|
||||
spr->name = name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue