Skip to content
Commits on Feb 15, 2013
  1. cpu: Add CPUArchState pointer to CPUState

    committed Jan 17, 2013
    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>
  2. cputlb: Pass CPUState to cpu_unlink_tb()

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

    committed Jan 16, 2013
    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>
  4. cpu: Move exit_request field to CPUState

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

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

    committed Dec 17, 2012
    Change gdbstub's cpu_index() argument to CPUState now that CPUArchState
    is no longer used.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  7. target-i386: Move cpu_x86_init()

    committed Feb 1, 2013
    Consolidate CPU functions in cpu.c.
    Allows to make cpu_x86_register() static.
    
    No functional changes.
    
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  8. target-cris: Introduce CRISCPU subclasses

    committed Feb 6, 2013
    Use class_init functions to initialize the VR in preparation for
    overriding v32+ behavior there.
    
    Move cpu_cris_init() to cpu.c and hook up a class_by_name callback.
    
    This change leads to unknown -cpu model names no longer falling back
    to a CPU with VR 32 but instead returning NULL.
    
    Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  9. target-m68k: Pass M68kCPU to m68k_set_irq_level()

    committed Jan 18, 2013
    Simplifies use of cpu_reset_interrupt() et al.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  10. mcf_intc: Pass M68kCPU to mcf_intc_init()

    committed Jan 18, 2013
    Store it in mcf_intc_state.
    Prepares for passing it to m68k_set_irq_level().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  11. mcf5206: Pass M68kCPU to mcf5206_init()

    committed Jan 18, 2013
    Store it in m5206_mbar_state. Prepares for passing M68kCPU to
    m68k_set_irq_level().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  12. target-m68k: Return M68kCPU from cpu_m68k_init()

    committed Jan 18, 2013
    Turn cpu_init() into a static inline function for backwards
    compatibility.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  13. ppc405_uc: Pass PowerPCCPU to ppc40x_{core,chip,system}_reset()

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

    committed Jan 20, 2013
    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>
  15. target-unicore32: Move TCG initialization to UniCore32CPU initfn

    committed Jan 20, 2013
    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>
  16. target-sparc: Move TCG initialization to SPARCCPU initfn

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

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

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

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

    committed Jan 20, 2013
    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>
  21. target-microblaze: Move TCG initialization to MicroBlazeCPU initfn

    committed Jan 20, 2013
    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>
  22. target-m68k: Move TCG initialization to M68kCPU initfn

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

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

    committed Jan 19, 2013
    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>
  25. target-arm: Move TCG initialization to ARMCPU initfn

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

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

    committed Jan 5, 2013
    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>
  28. target-sparc: Introduce QOM realizefn for SPARCCPU

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

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

    committed Jan 16, 2013
    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>
  31. target-mips: Introduce QOM realizefn for MIPSCPU

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

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

    committed Jan 5, 2013
    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>
  34. target-lm32: Introduce QOM realizefn for LM32CPU

    committed Jan 16, 2013
    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>
  35. target-cris: Introduce QOM realizefn for CRISCPU

    committed Jan 5, 2013
    Introduce realizefn and set realized = true from cpu_cris_init().
    
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
Something went wrong with that request. Please try again.