Skip to content
Permalink
Branch: macos
Commits on Jun 29, 2013
  1. XXX some dbdma cleanup

    agraf committed Jun 29, 2013
  2. PPC: Mac: Fix guest exported tbfreq values

    agraf committed Jun 29, 2013
    We can tell the guest the frequency of its time base through fwcfg.
    
    However, we tell it a different value from the speed tb actually runs
    at. Let's fix it and make the tbfreq initialization and the fwcfg exposure
    use the same values.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
  3. XXX openbios update

    agraf committed Jun 29, 2013
  4. XXX more dbdma fixes, this time it should work well

    agraf committed Jun 29, 2013
    Signed-off-by: Alexander Graf <agraf@suse.de>
Commits on Jun 28, 2013
  1. XXX more dbdma fixes

    agraf committed Jun 28, 2013
  2. XXX disable ide debug

    agraf committed Jun 28, 2013
  3. XXX disable dmg driver

    agraf committed Jun 28, 2013
  4. XXX more dbdma fixes

    agraf committed Jun 28, 2013
  5. XXX dbdma debug

    agraf committed Jun 28, 2013
  6. XXX openbios

    agraf committed Jun 28, 2013
  7. PPC: g3beige: Move secondary IDE bus to mac-io

    agraf committed Jun 24, 2013
    On a real G3 Beige the secondary IDE bus lives on the mac-io chip, not
    on some random PCI device. Move it there to become more compatible.
    
    While at it, also clean up the IDE channel connection logic.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    
    ---
    
    v1 -> v2:
    
      - fix IRQ mapping
  8. PPC: Ignore writes to L2CR

    agraf committed Jun 26, 2013
    The L2CR register contains a number of bits that either impose configuration
    which we can't deal with or mean "something is in progress until the bit is
    0 again".
    
    Since we don't model the former and we do want to accomodate guests using the
    latter semantics, let's just ignore writes to L2CR. That way guests always read
    back 0 and are usually happy with that.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
  9. mac-io: Add escc-legacy memory alias region

    agraf committed Jun 26, 2013
    Mac OS X's debugging serial driver accesses the ESCC through a different
    register layout, called "escc-legacy". This layout differs from the normal
    escc register layout purely by the location of the respective registers.
    
    This patch adds a memory alias region that takes normal escc registers and
    maps them into the escc-legacy register space.
    
    With this patch applied, a Mac OS X guest successfully emits debug output
    on the serial port when run with debug parameters set, for example by running:
    
      $ qemu-system-ppc -prom-env -'boot-args=-v debug=0x8 io=0xff serial=0x3' \
                        -cdrom 10.4.iso -boot d
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
  10. PPC: Newworld: Add second uninorth control register set

    agraf committed Jun 25, 2013
    Mac OS X requires a second uninorth register set to be mapped a few
    bytes above the first one. Let's just expose it to make it happy.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    
    ---
    
    v1 -> v2:
    
      - fix token pointer
  11. PPC: Newworld: Add uninorth token register

    agraf committed Jun 25, 2013
    Mac OS X expects the uninorth control register set to contain one
    register that always reads back what it writes in. Expose that.
    
    This is just a temporary hack. Eventually, we want to expose the
    uninorth (/uni-n in device tree) as a separate QOM device.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    
    ---
    
    v1 -> v2:
    
      - fix token pointer
  12. PPC: Add clock-frequency export for Mac machines

    agraf committed Jun 22, 2013
    Support in fwcfg has been around for exposure of the clock-frequency
    CPU property. OpenBIOS reads it, we just never exposed it.
    
    Since Mac OS X is very picky about its clock frequency values, let's
    just take a known good value and always expose that.
    
    Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Signed-off-by: Alexander Graf <agraf@suse.de>
    
    ---
    
    v1 -> v2:
    
      - rename fwcfg var to CLOCKFREQ to better reflect what it means
  13. PPC: Introduce an alias cache for faster lookups

    agraf committed Jun 22, 2013
    When running QEMU with "-cpu ?" we walk through every alias for every
    target CPU we know about. This takes several seconds on my very fast
    host system.
    
    Let's introduce a class object cache in the alias table. Using that we
    don't have to go through the tedious work of finding our target class.
    Instead, we can just go directly from the alias name to the target class
    pointer.
    
    This patch brings -cpu "?" to reasonable times again.
    
    Before:
      real    0m4.716s
    
    After:
      real    0m0.025s
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    
    ---
    
    It would be even nicer if we could have the alias table parsed during compile
    time. Then instead of having
    
      { string alias, string base_model }
    
    we would simply get
    
      { string alias, Class *klass }
    
    in the .rodata section.
    
    But I can't really think of a clever way to do this. Especially since we want
    to have the ability to have aliases that don't ever match any implemented CPU.
  14. PPC: Fix GDB read on code area for PPC6xx

    Fabien-Chouteau authored and agraf committed Jun 18, 2013
    On PPC 6xx, data and code have separated TLBs. Until now QEMU was only
    looking at data TLBs, which is not good when GDB wants to read code.
    
    This patch adds a second call to get_physical_address() with an
    ACCESS_CODE type of access when the first call with ACCESS_INT fails.
    
    Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  15. PPC: Add dump_mmu() for 6xx

    Fabien-Chouteau authored and agraf committed Jun 21, 2013
    "(qemu) info tlb" is a very useful tool for debugging, so I implemented
    the missing 6xx version.
    
    Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
    [agraf: fix printfs on hwaddr to PRI]
    Signed-off-by: Alexander Graf <agraf@suse.de>
  16. target-ppc: Introduce unrealizefn for PowerPCCPU

    afaerber authored and agraf committed Jun 9, 2013
    Use it to clean up the opcode table, resolving a former TODO from Jocelyn.
    Also switch from malloc() to g_malloc().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  17. booke_ppc: limit booke timer to max when timeout overflow

    Bharat Bhushan authored and agraf committed Jun 12, 2013
    Limit watchdog and fit timer to maximum timeout value which
    qemu timer can support (INT64_MAX). This maximum timeout will be
    hundreds of years, so limiting to max timeout is pretty safe.
    
    Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  18. Graphics: Switch to 800x600x32 as default mode

    agraf committed Jun 20, 2013
    We have stayed at 800x600x15 as default graphics mode for the last 9 years.
    If there ever was a reason to be there, surely nobody remembers it.
    
    However, recently non-Linux PPC guests started to show bad effects on 15 bit
    color mode. They do work just fine with 32 bits however.
    
    So let's switch to 32 bit color as the default graphic mode.
    
    Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  19. pseries: Update MAINTAINERS information

    dgibson authored and agraf committed Jun 15, 2013
    I'm no longer at IBM, and therefore no long actively working on the pseries
    (aka sPAPR) qemu machine type.  This patch removes my information in the
    MAINTAINERS file.
    
    While we're at it, I've added some extra file patterns for pseries specific
    files that weren't included in the existing pattern.
    
    Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
    [agraf: Remove new maintainer addition]
    Signed-off-by: Alexander Graf <agraf@suse.de>
  20. target-ppc kvm: save cr register

    aik authored and agraf committed Jun 15, 2013
    This adds a missing code to save CR (condition register) via
    kvm_arch_put_registers(). kvm_arch_get_registers() already has it.
    
    Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
    Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  21. pseries: Fix compiler warning (conversion of pointer to integral value)

    stweil authored and agraf committed Jun 19, 2013
    This kind of type cast must use uintptr_t or target_ulong to be portable
    for hosts with sizeof(void *) != sizeof(long).
    
    Here the value is assigned to a variable of type target_ulong.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    [agraf: fix compilation on 32bit hosts]
    Signed-off-by: Alexander Graf <agraf@suse.de>
  22. spapr-rtas: add CPU argument to RTAS calls

    Anthony Liguori authored and agraf committed Jun 19, 2013
    RTAS is a hypervisor provided binary blob that a guest loads and
    calls into to execute certain functions.  It's similar to the
    vsyscall page in Linux or the short lived VMCI paravirt interface
    from VMware.
    
    The QEMU implementation of the RTAS blob is simply a passthrough
    that proxies all RTAS calls to the hypervisor via an hypercall.
    
    While we pass a CPU argument for hypercall handling in QEMU, we
    don't pass it for RTAS calls.  Since some RTAs calls require
    making hypercalls (normally RTAS is implemented as guest code) we
    have nasty hacks to allow that.
    
    Add a CPU argument to RTAS call handling so we can more easily
    invoke hypercalls just as guest code would.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  23. target-ppc: Change default machine for 64-bit

    dgibson authored and agraf committed Jun 15, 2013
    Currently, for qemu-system-ppc64, the default machine type is 'mac99'.
    The mac99 machine is not being actively maintained, and represents a
    bizarre hybrid of components that never actually existed as a real system.
    This patch changes the default machine to 'pseries', which is actively
    maintained and works well with most modern ppc64 Linux distributions as a
    guest.
    
    Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
    [agraf: adjust commit message]
    Signed-off-by: Alexander Graf <agraf@suse.de>
  24. ppc: do not register IABR SPR twice for 603e

    hpoussin authored and agraf committed May 11, 2013
    IABR SPR is already registered in gen_spr_603(), called from init_proc_603E().
    
    Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  25. target-ppc: Drop redundant flags assignments from CPU families

    afaerber authored and agraf committed Feb 22, 2013
    Previous code has #define POWERPC_INSNS2_<family> PPC_NONE in some
    places for macrofied assignment to insns_flags2 field.
    
    PPC_NONE is defined as zero though and QOM classes are zero-initialized,
    so drop any pcc->insns_flags2 = PPC_NONE; assignments.
    
    PPC_NONE itself is still in use in translate.c.
    
    Suggested-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Alexander Graf <agraf@suse.de>
  26. mpc8544_guts: Turn qdev initfn into instance_init

    afaerber authored and agraf committed Jun 9, 2013
    SysBus can deal with NULL SysBusDeviceClass::init since 4ce5dae.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Alexander Graf <agraf@suse.de>
Older
You can’t perform that action at this time.