Commit f351077efb1febb4c32dc92acc680a26037dc5f2
1 parent
e84be9db
added dump function
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@138 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
0 deletions
cpu-i386.h
| @@ -426,6 +426,11 @@ struct siginfo; | @@ -426,6 +426,11 @@ struct siginfo; | ||
| 426 | int cpu_x86_signal_handler(int host_signum, struct siginfo *info, | 426 | int cpu_x86_signal_handler(int host_signum, struct siginfo *info, |
| 427 | void *puc); | 427 | void *puc); |
| 428 | 428 | ||
| 429 | +/* used to debug */ | ||
| 430 | +#define X86_DUMP_FPU 0x0001 /* dump FPU state too */ | ||
| 431 | +#define X86_DUMP_CCOP 0x0002 /* dump qemu flag cache */ | ||
| 432 | +void cpu_x86_dump_state(CPUX86State *env, FILE *f, int flags); | ||
| 433 | + | ||
| 429 | /* internal functions */ | 434 | /* internal functions */ |
| 430 | 435 | ||
| 431 | #define GEN_FLAG_CODE32_SHIFT 0 | 436 | #define GEN_FLAG_CODE32_SHIFT 0 |