Revision 3594c774 target-mips/helper.c
b/target-mips/helper.c | ||
---|---|---|
132 | 132 |
} |
133 | 133 |
#if 0 |
134 | 134 |
if (logfile) { |
135 |
fprintf(logfile, TLSZ " %d %d => " TLSZ " %d (%d)\n",
|
|
135 |
fprintf(logfile, TARGET_FMT_lx " %d %d => " TARGET_FMT_lx " %d (%d)\n",
|
|
136 | 136 |
address, rw, access_type, *physical, *prot, ret); |
137 | 137 |
} |
138 | 138 |
#endif |
... | ... | |
174 | 174 |
#if 0 |
175 | 175 |
cpu_dump_state(env, logfile, fprintf, 0); |
176 | 176 |
#endif |
177 |
fprintf(logfile, "%s pc " TLSZ " ad " TLSZ " rw %d is_user %d smmu %d\n",
|
|
177 |
fprintf(logfile, "%s pc " TARGET_FMT_lx " ad " TARGET_FMT_lx " rw %d is_user %d smmu %d\n",
|
|
178 | 178 |
__func__, env->PC, address, rw, is_user, is_softmmu); |
179 | 179 |
} |
180 | 180 |
|
... | ... | |
192 | 192 |
ret = get_physical_address(env, &physical, &prot, |
193 | 193 |
address, rw, access_type); |
194 | 194 |
if (logfile) { |
195 |
fprintf(logfile, "%s address=" TLSZ " ret %d physical " TLSZ " prot %d\n",
|
|
195 |
fprintf(logfile, "%s address=" TARGET_FMT_lx " ret %d physical " TARGET_FMT_lx " prot %d\n",
|
|
196 | 196 |
__func__, address, ret, physical, prot); |
197 | 197 |
} |
198 | 198 |
if (ret == TLBRET_MATCH) { |
... | ... | |
258 | 258 |
int cause = -1; |
259 | 259 |
|
260 | 260 |
if (logfile && env->exception_index != EXCP_EXT_INTERRUPT) { |
261 |
fprintf(logfile, "%s enter: PC " TLSZ " EPC " TLSZ " cause %d excp %d\n",
|
|
261 |
fprintf(logfile, "%s enter: PC " TARGET_FMT_lx " EPC " TARGET_FMT_lx " cause %d excp %d\n",
|
|
262 | 262 |
__func__, env->PC, env->CP0_EPC, cause, env->exception_index); |
263 | 263 |
} |
264 | 264 |
if (env->exception_index == EXCP_EXT_INTERRUPT && |
... | ... | |
410 | 410 |
exit(1); |
411 | 411 |
} |
412 | 412 |
if (logfile && env->exception_index != EXCP_EXT_INTERRUPT) { |
413 |
fprintf(logfile, "%s: PC " TLSZ " EPC " TLSZ " cause %d excp %d\n"
|
|
414 |
" S %08x C %08x A " TLSZ " D " TLSZ "\n",
|
|
413 |
fprintf(logfile, "%s: PC " TARGET_FMT_lx " EPC " TARGET_FMT_lx " cause %d excp %d\n"
|
|
414 |
" S %08x C %08x A " TARGET_FMT_lx " D " TARGET_FMT_lx "\n",
|
|
415 | 415 |
__func__, env->PC, env->CP0_EPC, cause, env->exception_index, |
416 | 416 |
env->CP0_Status, env->CP0_Cause, env->CP0_BadVAddr, |
417 | 417 |
env->CP0_DEPC); |
Also available in: Unified diff