mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
cpu: Turn cpu_dump_{state,statistics}() into CPUState hooks
Make cpustats monitor command available unconditionally. Prepares for changing kvm_handle_internal_error() and kvm_cpu_exec() arguments to CPUState. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
13618e058c
commit
878096eeb2
63 changed files with 242 additions and 86 deletions
|
@ -39,8 +39,10 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
int cpu_mb_handle_mmu_fault(CPUMBState * env, target_ulong address, int rw,
|
||||
int mmu_idx)
|
||||
{
|
||||
MicroBlazeCPU *cpu = mb_env_get_cpu(env);
|
||||
|
||||
env->exception_index = 0xaa;
|
||||
cpu_dump_state(env, stderr, fprintf, 0);
|
||||
cpu_dump_state(CPU(cpu), stderr, fprintf, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue