68
72
/* Special cases: */
71
74
/* cpu_dump_state() logging functions: */
72
static inline void log_cpu_state(CPUArchState *env1, int flags)
77
* @cpu: The CPU whose state is to be logged.
78
* @flags: Flags what to log.
80
* Logs the output of cpu_dump_state().
82
static inline void log_cpu_state(CPUState *cpu, int flags)
74
84
if (qemu_log_enabled()) {
75
cpu_dump_state(env1, qemu_logfile, fprintf, flags);
85
cpu_dump_state(cpu, qemu_logfile, fprintf, flags);
79
static inline void log_cpu_state_mask(int mask, CPUArchState *env1, int flags)
91
* @mask: Mask when to log.
92
* @cpu: The CPU whose state is to be logged.
93
* @flags: Flags what to log.
95
* Logs the output of cpu_dump_state() if loglevel includes @mask.
97
static inline void log_cpu_state_mask(int mask, CPUState *cpu, int flags)
81
99
if (qemu_loglevel & mask) {
82
log_cpu_state(env1, flags);
100
log_cpu_state(cpu, flags);
86
105
/* disas() and target_disas() to qemu_logfile: */
87
106
static inline void log_target_disas(CPUArchState *env, target_ulong start,
88
107
target_ulong len, int flags)