Permalink
Commits on Feb 1, 2013
  1. cpu: Add CPUArchState pointer to CPUState

    The target-specific ENV_GET_CPU() macros have allowed us to navigate
    from CPUArchState to CPUState. The reverse direction was not supported.
    Avoid introducing CPU_GET_ENV() macros by initializing an untyped
    pointer that is initialized in derived instance_init functions.
    
    The field may not be called "env" due to it being poisoned.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 17, 2013
  2. cputlb: Pass CPUState to cpu_unlink_tb()

    CPUArchState is no longer needed.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 17, 2013
  3. cpu: Move current_tb field to CPUState

    Explictly NULL it on CPU reset since it was located before breakpoints.
    
    Change vapic_report_tpr_access() argument to CPUState. This also
    resolves the use of void* for cpu.h independence.
    Change vAPIC patch_instruction() argument to X86CPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  4. cpu: Move exit_request field to CPUState

    Since it was located before breakpoints field, it needs to be reset.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Dec 17, 2012
  5. cpu: Move running field to CPUState

    Pass CPUState to cpu_exec_{start,end}() functions.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Dec 17, 2012
  6. cpu: Move host_tid field to CPUState

    Change gdbstub's cpu_index() argument to CPUState now that CPUArchState
    is no longer used.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Dec 17, 2012
  7. ppc405_uc: Pass PowerPCCPU to ppc40x_{core,chip,system}_reset()

    Prepares for changing cpu_interrupt() argument to CPUState.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Alexander Graf <agraf@suse.de>
    committed Jan 18, 2013
  8. target-xtensa: Move TCG initialization to XtensaCPU initfn

    Combine this with breakpoint handler registration, guarding both with
    tcg_enabled() to suppress also TCG init for qtest. Rename the handler to
    xtensa_breakpoint_handler() since it needs to become global.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  9. target-unicore32: Move TCG initialization to UniCore32CPU initfn

    Normalize the "inited" logic and add a tcg_enabled() check to suppress
    it for qtest.
    
    Ensures that a QOM-created UniCore32CPU is usable.
    
    Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  10. target-sparc: Move TCG initialization to SPARCCPU initfn

    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  11. target-sh4: Move TCG initialization to SuperHCPU initfn

    Add a tcg_enabled() check to suppress it for qtest.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  12. target-s390x: Move TCG initialization to S390CPU initfn

    Ensures that a QOM-created S390CPU is usable.
    
    Acked-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 19, 2013
  13. target-ppc: Move TCG initialization to PowerPCCPU initfn

    Ensures that a QOM-created PowerPCCPU is usable.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  14. target-mips: Move TCG initialization to MIPSCPU initfn

    Make mips_tcg_init() non-static and add tcg_enabled() check to suppress
    it for qtest.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  15. target-microblaze: Move TCG initialization to MicroBlazeCPU initfn

    Split off TCG initialization from cpu_mb_init() into mb_tcg_init() to
    call it from the initfn.
    
    Ensures that a QOM-created MicroBlazeCPU is usable.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 20, 2013
  16. target-m68k: Move TCG initialization to M68kCPU initfn

    Add a tcg_enabled() check to suppress it for qtest.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 19, 2013
  17. target-lm32: Move TCG initialization to LM32CPU initfn

    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 19, 2013
  18. target-cris: Move TCG initialization to CRISCPU initfn

    Split out TCG initialization from cpu_cris_init(). Avoid CPUCRISState
    dependency for v10-specific initialization and for non-v10 by inlining
    the decision into the initfn as well.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 19, 2013
  19. target-arm: Move TCG initialization to ARMCPU initfn

    Ensures that a QOM-created ARMCPU is usable.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 19, 2013
  20. target-xtensa: Introduce QOM realizefn for XtensaCPU

    Introduce realizefn and set realized = true in cpu_xtensa_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  21. target-unicore32: Introduce QOM realizefn for UniCore32CPU

    Introduce a realizefn and set realized = true in uc32_cpu_init().
    
    Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
    [AF: Invoke the parent's realizefn]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 5, 2013
  22. target-sparc: Introduce QOM realizefn for SPARCCPU

    Introduce realizefn and set realized = true in cpu_sparc_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  23. target-sh4: Introduce QOM realizefn for SuperHCPU

    Introduce a realizefn and set realized = true in cpu_sh4_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 23, 2012
  24. target-s390x: Introduce QOM realizefn for S390CPU

    Introduce realizefn and set realized = true in cpu_s390x_init().
    
    Defer CPU reset from initfn to realizefn.
    
    Acked-by: Richard Henderson <rth@twiddle.net>
    [AF: Invoke parent's realizefn]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  25. target-mips: Introduce QOM realizefn for MIPSCPU

    Introduce a realizefn and set realized = true from cpu_mips_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  26. target-microblaze: Introduce QOM realizefn for MicroBlazeCPU

    Introduce realizefn and set realized = true from cpu_mb_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 5, 2013
  27. target-m68k: Introduce QOM realizefn for M68kCPU

    Introduce realizefn and set realized = true in cpu_m68k_init().
    
    Split off GDB registration to a new m68k_cpu_init_gdb() so that it can
    be called from the realizefn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 5, 2013
  28. target-lm32: Introduce QOM realizefn for LM32CPU

    Introduce a realizefn and set realized = true in cpu_lm32_init().
    
    Also move cpu_reset() call from initfn to realizefn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  29. target-cris: Introduce QOM realizefn for CRISCPU

    Introduce realizefn and set realized = true from cpu_cris_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 5, 2013
  30. target-ppc: Update PowerPCCPU to QOM realizefn

    Adapt ppc_cpu_realize() signature, hook it up to DeviceClass and set
    realized = true in cpu_ppc_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  31. target-openrisc: Update OpenRISCCPU to QOM realizefn

    Update the openrisc_cpu_realize() signature, hook it up to
    DeviceClass::realize and set realized = true in cpu_openrisc_init().
    
    qapi/error.h is now included through qdev and no longer needed.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Cc: Jia Liu <proljc@gmail.com>
    committed Jan 5, 2013
  32. target-i386: Update X86CPU to QOM realizefn

    Adapt the signature of x86_cpu_realize(), hook up to
    DeviceClass::realize and set realized = true in cpu_x86_init().
    
    The QOM realizefn cannot depend on errp being non-NULL as in
    cpu_x86_init(), so use a local Error to preserve error handling behavior
    on APIC initialization errors.
    
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    [AF: Invoke parent's realizefn]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 16, 2013
  33. target-arm: Update ARMCPU to QOM realizefn

    Turn arm_cpu_realize() into a QOM realize function, no longer called
    via cpu.h prototype. To maintain the semantics of cpu_init(), set
    realized = true explicitly in cpu_arm_init().
    
    Move GDB coprocessor registration, CPU reset and vCPU initialization
    into the realizefn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 5, 2013
  34. target-alpha: Update AlphaCPU to QOM realizefn

    Update the alpha_cpu_realize() signature and hook up to
    DeviceClass::realize. Set realized = true in cpu_alpha_init().
    
    qapi/error.h is included through qdev now and no longer needed.
    
    Acked-by: Richard Henderson <rth@twiddle.net>
    [AF: Invoke parent's realizefn]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 5, 2013
  35. cpu: Prepare QOM realizefn

    Overwrite the default implementation with a no-op, no longer
    attempting to call DeviceClass::init.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 19, 2013