Revision 9a78eead target-i386/helper.c
b/target-i386/helper.c | ||
---|---|---|
169 | 169 |
}; |
170 | 170 |
|
171 | 171 |
static void |
172 |
cpu_x86_dump_seg_cache(CPUState *env, FILE *f, |
|
173 |
int (*cpu_fprintf)(FILE *f, const char *fmt, ...), |
|
172 |
cpu_x86_dump_seg_cache(CPUState *env, FILE *f, fprintf_function cpu_fprintf, |
|
174 | 173 |
const char *name, struct SegmentCache *sc) |
175 | 174 |
{ |
176 | 175 |
#ifdef TARGET_X86_64 |
... | ... | |
224 | 223 |
cpu_fprintf(f, "\n"); |
225 | 224 |
} |
226 | 225 |
|
227 |
void cpu_dump_state(CPUState *env, FILE *f, |
|
228 |
int (*cpu_fprintf)(FILE *f, const char *fmt, ...), |
|
226 |
void cpu_dump_state(CPUState *env, FILE *f, fprintf_function cpu_fprintf, |
|
229 | 227 |
int flags) |
230 | 228 |
{ |
231 | 229 |
int eflags, i, nb; |
... | ... | |
335 | 333 |
(uint32_t)env->cr[2], |
336 | 334 |
(uint32_t)env->cr[3], |
337 | 335 |
(uint32_t)env->cr[4]); |
338 |
for(i = 0; i < 4; i++) |
|
339 |
cpu_fprintf(f, "DR%d=%08x ", i, env->dr[i]); |
|
340 |
cpu_fprintf(f, "\nDR6=%08x DR7=%08x\n", env->dr[6], env->dr[7]); |
|
336 |
for(i = 0; i < 4; i++) { |
|
337 |
cpu_fprintf(f, "DR%d=" TARGET_FMT_lx " ", i, env->dr[i]); |
|
338 |
} |
|
339 |
cpu_fprintf(f, "\nDR6=" TARGET_FMT_lx " DR7=" TARGET_FMT_lx "\n", |
|
340 |
env->dr[6], env->dr[7]); |
|
341 | 341 |
} |
342 | 342 |
if (flags & X86_DUMP_CCOP) { |
343 | 343 |
if ((unsigned)env->cc_op < CC_OP_NB) |
Also available in: Unified diff