Permalink
Switch branches/tags
Commits on Apr 15, 2012
  1. target-m68k: Add QOM CPU subclasses

    afaerber committed Apr 15, 2012
    Move code from cpu_m68k_set_model() into model-specific initfns
    and inline the remaining parts into cpu_m68k_init().
    
    Let m68k_cpu_list() print CPU classes alphabetically except for "any".
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  2. target-m68k: Start QOM'ifying CPU init

    afaerber committed Apr 14, 2012
    Move model-independent code from cpu_m68k_init() into a QOM initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  3. target-m68k: QOM'ify CPU reset

    afaerber committed Apr 14, 2012
    Move code from cpu_state_reset() into QOM m68k_cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  4. target-m68k: QOM'ify CPU

    afaerber committed Apr 14, 2012
    Embed CPUM68KState as first member of QOM M68kCPU.
    Drop cpu_m68k_close() in favor of object_delete().
    
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  5. target-sh4: Make itlb_replacement() use SuperHCPU

    afaerber committed Feb 26, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  6. target-sh4: Make update_itlb_use() take SuperHCPU

    afaerber committed Feb 26, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  7. target-sh4: Make copy_utlb_entry_itlb() take SuperHCPU

    afaerber committed Feb 26, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  8. target-sh4: Make get_{physical,mmu}_address() take SuperHCPU

    afaerber committed Feb 26, 2012
    Simplifies TLB helper code.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  9. target-sh4: Make cpu_sh4_{read,write}_mmaped_{i,u}tlb_addr() take CPU

    afaerber committed Feb 26, 2012
    Change argument type to SuperHCPU and update the SH7750 SoC.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  10. target-sh4: Make find_*tlb_entry() take SuperHCPU

    afaerber committed Feb 26, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  11. target-sh4: Make increment_urc() take SuperHCPU

    afaerber committed Feb 26, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  12. target-sh4: Make cpu_sh4_invalidate_tlb() take SuperHCPU

    afaerber committed Feb 26, 2012
    Change argument type from CPUSH4State to SuperHCPU.
    This simplifies the SH7750 SoC as its only caller.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  13. hw/sh7750: Use SuperHCPU

    afaerber committed Feb 26, 2012
    In place of CPUSH4State use SuperHCPU for SH7750State::cpu field.
    
    Fix tab indentation on those lines and add braces.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  14. target-sh4: Do not reset CPU feature flags on reset

    afaerber committed Feb 11, 2012
    Move them out of CPUSH4State so that they are not zero'ed on reset.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  15. target-sh4: Start QOM'ifying CPU init

    afaerber committed Apr 13, 2012
    Move code from cpu_sh4_init() into a QOM initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  16. target-sh4: QOM'ify CPU reset

    afaerber committed Apr 13, 2012
    Move code from cpu_state_reset() to QOM superh_cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  17. target-sh4: QOM'ify CPU

    afaerber committed Feb 11, 2012
    Embed CPUSH4State as first member of SuperHCPU.
    
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  18. target-microblaze: QOM'ify CPU init

    afaerber committed Apr 12, 2012
    Move code from cpu_mb_init() to a QOM initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
  19. target-microblaze: QOM'ify CPU reset

    afaerber committed Apr 12, 2012
    Move code from cpu_state_reset() to QOM mb_cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
  20. target-microblaze: QOM'ify CPU

    afaerber committed Apr 12, 2012
    Embed CPUMBState as first member of QOM MicroBlazeCPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
  21. target-cris: Start QOM'ifying CPU init

    afaerber committed Apr 11, 2012
    Move VR-independent code from cpu_cris_init() into an initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  22. target-cris: QOM'ify CPU reset

    afaerber committed Apr 11, 2012
    Move code from cpu_state_reset() into QOM cris_cpu_reset().
    Let CPU init call cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  23. target-cris: QOM'ify CPU

    afaerber committed Apr 11, 2012
    Embed CPUCRISState as first member of QOM CRISCPU.
    
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  24. target-alpha: QOM'ify CPU init

    afaerber committed Apr 6, 2012
    Move code from cpu_alpha_init() into a CPU initializer.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  25. target-alpha: QOM'ify CPU

    afaerber committed Apr 6, 2012
    Embed CPUAlphaState as first member of AlphaCPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  26. target-ppc: QOM'ify CPU reset

    afaerber committed Apr 6, 2012
    Move code from cpu_state_reset() into ppc_cpu_reset().
    Reorder #include of helper_regs.h to use it in translate_init.c.
    
    Adjust whitespace and add braces.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
  27. target-ppc: Start QOM'ifying CPU init

    afaerber committed Apr 6, 2012
    Move code not dependent on ppc_def_t from cpu_ppc_init() into an initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
    [AF: Rebased on top of moved env->cpu_index fixup]
  28. target-ppc: QOM'ify CPU

    afaerber committed Apr 6, 2012
    Embed CPUPPCState as first member of PowerPCCPU.
    Distinguish between "powerpc-cpu", "powerpc64-cpu" and
    "embedded-powerpc-cpu".
    
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
  29. target-ppc: Add hooks for handling tcg and kvm limitations

    dgibson committed with afaerber Apr 4, 2012
    On target-ppc, our table of CPU types and features encodes the features as
    found on the hardware, regardless of whether these features are actually
    usable under TCG or KVM.  We already have cases where the information from
    the cpu table must be fixed up to account for limitations in the emulation
    method we're using.  e.g. TCG does not support the DFP and VSX instructions
    and KVM needs different numbering of the CPUs in order to tell it the
    correct thread to core mappings.
    
    This patch cleans up these hacks to handle emulation limitations by
    consolidating them into a pair of functions specifically for the purpose.
    
    Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
    [AF: Style and typo fixes, rename new functions and drop ppc_def_t arg]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  30. target-ppc: Drop cpu_ppc_close()

    afaerber committed Apr 6, 2012
    It is unused, so avoid QOM'ifying it unneededly.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
Commits on Apr 14, 2012
  1. tests: remove .SECONDARY special target

    bonzini committed with blueswirl Mar 31, 2012
    The special target should not be needed anymore, and caused (perhaps
    due to a Make bug) a failure with "make -j2".  In any case, the
    main makefile is a better place for such special targets rather
    than an included makefile.
    
    Reported-by: Luiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Tested-by: Luiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  2. target-xtensa: add test for IBREAK invalidation

    jcmvbkbc committed with blueswirl Apr 9, 2012
    Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  3. target-xtensa: add tests for LBEG/LEND invalidation

    jcmvbkbc committed with blueswirl Apr 9, 2012
    Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  4. target-xtensa: fix tb invalidation for IBREAK and LOOP

    jcmvbkbc committed with blueswirl Apr 9, 2012
    Instruction breakpoint/zero overhead loop handling code is built into
    TBs pointed to by IBREAKA/LEND SRs. When these or related SRs get
    changed TBs at virtual addresses corresponding to their old and their
    new values must be invalidated.
    
    Virtual address range is passed to the tb_invalidate_phys_page_range,
    which is incorrect in system emulation mode.
    
    To fix it use guest TLB/MMU to translate virtual address to physical
    address.
    
    However the guest may not have virtual-to-physical mapping at the moment
    of IBREAKA/LEND change, thus this fix is not 100% accurate.
    
    Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  5. exec: provide tb_invalidate_phys_addr function

    jcmvbkbc committed with blueswirl Apr 9, 2012
    Allow TB invalidation by its physical address, extract implementation
    from the breakpoint_invalidate function.
    
    Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>