Permalink
Switch branches/tags
Commits on Apr 6, 2012
  1. target-ppc: Add CPU finalizer

    free() opcode tables. They are being malloc()'ed in create_new_table().
    
    Resolves Jocelyn's TODO in former cpu_ppc_close().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 6, 2012
  2. target-ppc: QOM'ify CPU reset

    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>
    committed Apr 6, 2012
  3. target-ppc: QOM'ify CPU init

    Move code from cpu_ppc_init() into an initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 6, 2012
  4. target-ppc: QOM'ify CPU

    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>
    committed Apr 6, 2012
  5. target-ppc: Drop cpu_ppc_close()

    It is unused, so avoid QOM'ifying it unneededly.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 6, 2012
  6. target-sparc: QOM'ify CPU

    Embed CPUSPARCState as first member of SPARCCPU.
    Drop cpu_sparc_close() in favor of object_delete() and a finalizer.
    Let cpu_state_reset() call cpu_reset().
    
    Make TYPE_SPARC_CPU non-abstract for now.
    Distinguish between "sparc-cpu" and "sparc64-cpu".
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 4, 2012
  7. target-sparc: Rename cpu_init.c

    Align QOM'ified targets, with a view to simplify Makefile.target.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 4, 2012
  8. target-i386: QOM'ify CPU reset

    Move code from cpu_state_reset() into QOM x86_cpu_reset(),
    fixing style issues for FPU init.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
  9. target-i386: QOM'ify CPU init

    Move code from cpu_x86_init() to new QOM x86_cpu_initfn().
    Also move mce_init() to cpu.c since it's used nowhere else.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
  10. target-i386: QOM'ify CPU

    Embed CPUX86State as first member of X86CPU.
    Distinguish between "x86_64-cpu" and "i386-cpu".
    Drop cpu_x86_close() in favor of calling object_delete() directly.
    
    For now let CPUClass::reset() call cpu_state_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
Commits on Apr 4, 2012
  1. target-i386: Rename cpuid.c

    Name it cpu.c to align with other QOM'ified targets.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
  2. Merge branch 's390-for-upstream' of git://repo.or.cz/qemu/agraf

    * 's390-for-upstream' of git://repo.or.cz/qemu/agraf:
      target-s390x: Update s390x_{tod,cpu}_timer() to use S390CPU
      target-s390x: QOM'ify CPU init
      target-s390x: QOM'ify CPU reset
      target-s390x: QOM'ify CPU
    blueswirl committed Apr 4, 2012
  3. Improve interrupt handling priority

    The vector interrupt has higher priority than interrupt_level_n.
    Also check only interrupt_level_n concurency when TL > 0, the traps of
    other types may be nested.
    
    Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    artyom-tarasenko committed with blueswirl Apr 3, 2012
  4. Fix vector interrupt handling

    Don't produce stray irq 5, don't overwrite ivec_data if still busy with
    processing of the previous interrupt.
    
    Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    artyom-tarasenko committed with blueswirl Apr 3, 2012
  5. target-s390x: Update s390x_{tod,cpu}_timer() to use S390CPU

    In place of CPUS390XState pass S390CPU as opaque from the new initfn.
    cpu_interrupt() is anticipated to take a CPUState in the future.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
    committed Apr 2, 2012
  6. target-s390x: QOM'ify CPU init

    Move code from cpu_s390x_init() into an initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
    committed Apr 2, 2012
  7. target-s390x: QOM'ify CPU reset

    Move code from cpu_state_reset() to s390_cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
    committed Apr 2, 2012
  8. target-s390x: QOM'ify CPU

    Embed CPUS390XState as first member of S390CPU.
    Since -cpu is being ignored, make TYPE_S390_CPU non-abstract.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
    committed Apr 2, 2012
Commits on Apr 2, 2012
  1. qdev: put all devices under /machine

    Avoid cluttering too much the QOM root.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    bonzini committed with Anthony Liguori Mar 28, 2012
  2. qdev: give all devices a canonical path

    A strong limitation of QOM right now is that unconverted ports
    (e.g. all...) do not give a canonical path to devices that are
    part of the board.  This in turn makes it impossible to replace
    PROP_PTR with a QOM link for example.
    
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    bonzini committed with Anthony Liguori Mar 27, 2012
  3. qdev: add children before qdev_init

    We want the composition tree to to be in order by the time we call
    qdev_init, so that a single set of the toplevel realize property can
    propagate all the way down the composition tree.
    
    This is not the case so far.  Unfortunately, this is incompatible
    with calling qdev_init in the constructor wrappers for devices,
    so for now we need to unattach some devices that are created through
    those wrappers.  This will be fixed by removing qdev_init and instead
    setting the toplevel realize property after machine init.
    
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    bonzini committed with Anthony Liguori Mar 27, 2012
  4. qom: add container_get

    This is QOM "mkdir -p".  It is useful when referring to
    container objects such as "/machine".
    
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    bonzini committed with Anthony Liguori Mar 27, 2012
  5. Merge remote-tracking branch 'kiszka/queues/slirp' into staging

    * kiszka/queues/slirp:
      slirp: Signal free input buffer space to io-thread
      w32/slirp: Undefine error constants before their redefinition
      slirp: use socket_set_nonblock
      slirp: clean up conflicts with system headers
    Anthony Liguori committed Apr 2, 2012
  6. Merge remote-tracking branch 'stefanha/tracing' into staging

    * stefanha/tracing:
      tracetool: dtrace: handle in and next reserved words
      tracetool: dtrace disabled-events fix
      Makefile.target: code stp dependency on trace-events
    Anthony Liguori committed Apr 2, 2012
  7. serial: clear LSR.TEMT when populating the TSR

    We never actually clear the TEMT (transmit sending register empty) flag when
    populating the TSR.  We set the flag, but since it's never cleared, setting it
    is sort of pointless..
    
    I found this with a unit test case.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori committed Apr 1, 2012
  8. serial: fix retry logic

    I'm not sure if the retry logic has ever worked when not using FIFO mode.  I
    found this while writing a test case although code inspection confirms it is
    definitely broken.
    
    The TSR retry logic will never actually happen because it is guarded by an
    'if (s->tsr_rety > 0)' but this is the only place that can ever make the
    variable greater than zero.  That effectively makes the retry logic an 'if (0)'.
    
    I believe this is a typo and the intention was >= 0.  Once this is fixed though,
    I see double transmits with my test case.  This is because in the non FIFO
    case, serial_xmit may get invoked while LSR.THRE is still high because the
    character was processed but the retransmit timer was still active.
    
    We can handle this by simply checking for LSR.THRE and returning early.  It's
    possible that the FIFO paths also need some attention.
    
    Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori committed Apr 1, 2012
  9. qtest: use qemu_gettimeofday()

    On linux, qemu_timeval will always be two long ints.  On windows, we use our
    own struct definition.  This should fix win64.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori committed Mar 30, 2012
Commits on Apr 1, 2012
  1. milkymist-vgafb: add missing register

    This bug existed since the first commit. Fortunately, the affected
    registers have no functionality in qemu. This will only prevent the
    following warning:
      milkymist_vgafb: write access to unknown register 0x00000034
    
    Signed-off-by: Michael Walle <michael@walle.cc>
    mwalle committed Mar 31, 2012
  2. target-lm32: add simple disassembler

    Because binutils disassembler is based on libopcode, this is a rewrite from
    scratch.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
    mwalle committed Mar 31, 2012
Commits on Mar 31, 2012
  1. milkymist-sysctl: support for new core version

    The new version introduces the following new registers:
     - SoC clock frequency: read-only of system clock used on the SoC
     - debug scratchpad: 8 bit scratchpad register
     - debug write lock: write once register, without any function on QEMU
    
    Signed-off-by: Michael Walle <michael@walle.cc>
    mwalle committed Mar 31, 2012
  2. target-lm32: init tcg only if available

    Once qtest support for target-lm32 arrives, tcg may be disabled.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
    mwalle committed Mar 31, 2012
  3. tests: fix out-of-tree building for lm32 target

    Signed-off-by: Michael Walle <michael@walle.cc>
    mwalle committed Mar 31, 2012
  4. Merge branch 'arm-devs.for-upstream' of git://git.linaro.org/people/p…

    …maydell/qemu-arm
    
    * 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
      pl031: switch clock base to rtc_clock
      pl031: rearm alarm timer upon load
      arm: switch real-time clocks to rtc_clock
      omap: switch omap_lpg to vm_clock
      rtc: add -rtc clock=rt
    blueswirl committed Mar 31, 2012
  5. Merge branch 'qom-cpu-unicore32.v3' of git://github.com/afaerber/qemu…

    …-cpu
    
    * 'qom-cpu-unicore32.v3' of git://github.com/afaerber/qemu-cpu:
      target-unicore32: Move CPU-dependent init into initfn
      target-unicore32: QOM'ify CPU
      target-unicore32: License future contributions under GPLv2+
      target-unicore32: Relicense to GPLv2+
      MAINTAINERS: Add entry for UniCore32
    blueswirl committed Mar 31, 2012
  6. Merge branch 'target-arm.for-upstream' of git://git.linaro.org/people…

    …/pmaydell/qemu-arm
    
    * 'target-arm.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
      ARM: Permit any ARMv6K CPU to read the MVFR0 and MVFR1 VFP registers.
      target-arm: Minimalistic CPU QOM'ification
      target-arm: Drop cpu_arm_close()
    blueswirl committed Mar 31, 2012