Permalink
Switch branches/tags
Commits on Oct 25, 2011
  1. target-sparc: Fix use of g_new0 / g_free

    stweil committed with blueswirl Oct 25, 2011
    g_malloc0 needs g_free instead of free.
    While fixing this, I also replaced g_malloc0 by g_new0
    as was suggested by Stuart Brady.
    
    Cc: Blue Swirl <blauwirbel@gmail.com>
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  2. target-sparc: Fix order of function parameters

    stweil committed with blueswirl Oct 24, 2011
    The MinGW-w64 gcc complains about wrong parameters for
    gen_helper_fpadd16_s and three other functions.
    
    gen_helper_fpadd16_s is declared like this (hidden in lots of macros):
    
    static inline void
     gen_helper_fpadd16s(TCGv_i32 retval, TCGv_ptr arg1,
                         TCGv_i32 arg2, TCGv_i32 arg3);
    
    So it looks like cpu_env should be the 2nd parameter.
    
    Please review this patch as I have no environment to test it
    (maybe the 1st parameter should be cpu_dst?).
    
    Cc: Blue Swirl <blauwirbel@gmail.com>
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  3. hda: do not mix output and input stream states, RHBZ #740493

    elmarco committed with malc Oct 25, 2011
    Windows 7 may use the same stream number for input and output.
    Current code will confuse streams.
    
    Changes since v1:
    - keep running_compat[] for migration version 1
    - add running_real[] for migration version 2
    
    Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: malc <av1474@comtv.ru>
  4. hda: do not mix output and input streams, RHBZ #740493

    elmarco committed with malc Oct 25, 2011
    Windows 7 may use the same stream number for input and output.
    That will result in lot of garbage on playback.
    
    The hardcoded value of 4 needs to be in sync with GCAP streams
    description and IN/OUT registers.
    
    Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: malc <av1474@comtv.ru>
Commits on Oct 24, 2011
  1. Merge remote-tracking branch 'bonzini/split-main-loop-for-anthony' in…

    Anthony Liguori committed Oct 24, 2011
    …to staging
Commits on Oct 23, 2011
  1. Add stdio char device on windows

    Fabien-Chouteau committed with blueswirl Oct 6, 2011
    Simple implementation of an stdio char device on Windows.
    
    Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  2. Sparc: split CWP and PSTATE op helpers

    blueswirl committed Aug 1, 2011
    Move CWP and PSTATE op helpers to win_helper.c.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  3. Sparc: avoid AREG0 for lazy condition code helpers

    blueswirl committed Jul 3, 2011
    Make lazy condition code helpers take a parameter for CPUState instead
    of relying on global env.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  4. Sparc: split lazy condition code handling op helpers

    blueswirl committed Aug 1, 2011
    Move lazy condition code handling op helpers to cc_helper.c.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  5. Sparc: avoid AREG0 for float and VIS ops

    blueswirl committed Jul 3, 2011
    Make floating point and VIS ops take a parameter for CPUState instead
    of relying on global env.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  6. Sparc: split FPU and VIS op helpers

    blueswirl committed Aug 1, 2011
    Move FPU op helpers to fop_helper.c. Move VIS op helpers to vis_helper.c,
    compile it only for Sparc64.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  7. Sparc: fix coding style

    blueswirl committed Jul 3, 2011
    Before the next patches, fix coding style of the areas affected.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  8. Sparc: avoid AREG0 for raise_exception and helper_debug

    blueswirl committed Jul 3, 2011
    Make raise_exception() and helper_debug() take a parameter for
    CPUState instead of relying on global env. Move the functions
    to helper.c.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  9. Sparc: move trivial functions from op_helper.c

    blueswirl committed Jul 3, 2011
    These functions don't need access to CPUState or already pass it,
    so relocating them from op_helper.c to helper.c and int64_helper.c
    is trivial.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  10. Sparc: split helper.c

    blueswirl committed Sep 11, 2011
    Move CPU init to cpu_init.c and interrupt handling to int32_helper.c
    for Sparc32 and int64_helper.c for Sparc64.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  11. Sparc: fix coding style

    blueswirl committed Sep 11, 2011
    Before the next patch, fix coding style of the areas affected.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  12. m48t59: fix write access

    blueswirl committed Oct 15, 2011
    Fix incorrect order of arguments, letting writes to NVRAM succeed.
    
    It looks like guests never write to the device, only read from it, since the bug
    originates back to 819385c.
    
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  13. m48t59: drop obsolete address base arithmetic

    blueswirl committed Oct 15, 2011
    Remove now incorrect address base arithmetic, missed by
    9936d6e. Fixes Sparc64 boot.
    
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  14. pci_bridge: fix typo

    blueswirl committed Oct 16, 2011
    Reviewed-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Commits on Oct 21, 2011
  1. simplify main loop functions

    bonzini committed Sep 12, 2011
    Provide a clean example of how to use the main loop in the tools.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  2. Revert to a hand-made select loop

    bonzini committed Sep 12, 2011
    This reverts commit c82dc29
    and 4d88a2a.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  3. main-loop: create main-loop.c

    bonzini committed Sep 13, 2011
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  4. main-loop: create main-loop.h

    bonzini committed Sep 12, 2011
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  5. qemu-timer: do not use RunState change handlers

    bonzini committed Sep 27, 2011
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  6. qemu-timer: move more stuff out of qemu-timer.c

    bonzini committed Sep 12, 2011
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  7. qemu-timer: use atexit for quit_timers

    bonzini committed Sep 19, 2011
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  8. qemu-timer: do not refer to runstate_is_running()

    bonzini committed Sep 12, 2011
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  9. qemu-timer: move icount to cpus.c

    bonzini committed Sep 12, 2011
    None of this is needed by tools, and most of it can even be made static
    inside cpus.c.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  10. qemu-timer: more clock functions

    bonzini committed Sep 12, 2011
    These will be used when moving icount accounting to cpus.c.
    
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  11. qemu-timer: move common code to qemu_rearm_alarm_timer

    bonzini committed Mar 14, 2011
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  12. qemu-timer: remove active_timers array

    bonzini committed Sep 13, 2011
    Embed the list in the QEMUClock instead.
    
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  13. remove unused function

    bonzini committed Sep 12, 2011
    Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  14. compatfd.c: Don't pass NULL pointer to SYS_signalfd

    pm215 committed with balrog-kun Oct 13, 2011
    Don't pass a NULL pointer in to SYS_signalfd in qemu_signalfd_available():
    this isn't valid and Valgrind complains about it.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
  15. linux-user: Fix broken "-version" option

    pm215 committed with balrog-kun Sep 29, 2011
    Fix the "-version" option, which was accidentally broken in commit
    fc9c541:
     * exit after printing version information rather than proceeding
       blithely onward (and likely printing the full usage message)
     * correct the cut-n-paste error in the usage message for it
     * don't insist on the presence of a following argument for
       options which don't take an argument (this was preventing
       'qemu-arm -version' from working)
     * remove a spurious argc check from the beginning of main() which
       meant 'QEMU_VERSION=1 qemu-arm' didn't work.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
  16. hw/arm_gic.c: Fix save/load of irq_target array

    Dmitry Koshelev committed with balrog-kun Oct 20, 2011
    irq_target array saving/loading is in the wrong loop.
    Version bump.
    
    Signed-off-by: Dmitry Koshelev <karaghiozis@gmail.com>
    Acked-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>