Permalink
Switch branches/tags
Commits on Apr 10, 2012
  1. target-alpha: QOM'ify CPU init

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

    Embed CPUAlphaState as first member of AlphaCPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 6, 2012
  3. 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
  4. 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
  5. 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
  6. 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
  7. target-ppc: Drop cpu_ppc_close()

    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>
    committed Apr 6, 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
  11. 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
  12. petalogix_s3adsp1800: deleted bad FIXME comment

    This FIXME has already been actioned. Deleted comment.
    
    Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
    Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    pete128 committed with edgarigl Apr 10, 2012
Commits on Apr 8, 2012
  1. Merge branch 'memory/core' of git://git.kernel.org/pub/scm/virt/kvm/q…

    …emu-kvm
    
    * 'memory/core' of git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm:
      memory: check address space when a listener is registered
      memory: print aliased IO ranges in info mtree
      ioport: use INT64_MAX for IO ranges
    blueswirl committed Apr 8, 2012
Commits on Apr 7, 2012
  1. Add QEMU_NORETURN to function cpu_io_recompile

    cpu_io_recompile terminates by calling either cpu_abort or
    cpu_resume_from_signal which both never return.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  2. Add QEMU_NORETURN to function cpu_resume_from_signal

    cpu_resume_from_signal terminates by calling longjmp.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  3. Replace Qemu by QEMU in comments

    The official spelling is QEMU.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    [blauwirbel@gmail.com: fixed comment style in hw/sun4m.c]
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  4. Replace Qemu by QEMU in w32 installation path (prefix)

    The official spelling is QEMU.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  5. Replace Qemu by QEMU in internal documentation

    The official spelling is QEMU.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  6. Replace Qemu by QEMU in user visible documentation

    The official spelling is QEMU.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  7. remove useless comments in dma

    This comment is useless, just removes it and makes the codes clear.
    
    Signed-off-by: Wanpeng Li <liwp@linux.vnet.ibm.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Wanpeng Li committed with blueswirl Apr 6, 2012
  8. tci: Support targets with CONFIG_TCG_PASS_AREG0 (fix broken build)

    Builds with --enable-tcg-interpreter failed because more and more
    targets (currently alpha and sparc) replaced the global env in AREG0
    by function parameters.
    
    Convert the TCG interpreter to use the new helper functions and add
    defines for those targets which still use AREG0.
    
    Cc: Blue Swirl <blauwirbel@gmail.com>
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 7, 2012
  9. Merge branch 'linux-user-for-upstream' of git://git.linaro.org/people…

    …/rikuvoipio/qemu
    
    * 'linux-user-for-upstream' of git://git.linaro.org/people/rikuvoipio/qemu:
      Userspace ARM BE8 support
      elf.h: Update EF_ARM_ constants to newer ABI versions
      arm-linux-user: fix elfload.c's AT_HWCAP to reflect cpu features.
      linux-user/arm/syscall_nr.h: Add syscall number for ppoll
      linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME
      linux-user/syscall.c: Fix indentation in prctl handling
      linux-user: reserve 4GB of vmem for 32-on-64
      linux-user: resolve reserved_va vma downwards
      linux-user: take RESERVED_VA into account for g2h_valid()
      linux-user: fix fallocate
      linux-user: Add ioctl for BLKBSZGET
      linux-user: add BLKSSZGET ioctl wrapper
      linux-user: fix BLK ioctl arguments
      linux-user: add struct old_dev_t compat
      linux-user: implement device mapper ioctls
      linux-user: target_argv is placed on ts->bprm->argv and can't be freed()
      linux-user: improve fake /proc/self/stat making `ps` not segfault.
    blueswirl committed Apr 7, 2012
  10. w64: Fix data type of tb_next and other variables used for host addre…

    …sses
    
    QEMU host addresses must use uintptr_t to be portable for hosts with
    an unusual size of long (w64).
    
    tb_jmp_offset is an uint16_t value, therefore the local variable offset
    in function tb_set_jmp_target was changed from unsigned long to uint16_t.
    
    The type cast to long in function tb_add_jump now also uses uintptr_t.
    For the bit operation used here, the signedness of the type cast does
    not matter.
    
    Some remaining unsigned long values are either only used for ARM assembler
    code or will be fixed in a later patch for PPC.
    
    v2:
    Fix signature of tb_find_pc in exec.c, too (hint from Blue Swirl, thanks).
    There remain lots of other long / unsigned long in exec.c which must be
    replaced by uintptr_t. This will be done in a separate patch. Here
    only one of these type casts is fixed.
    
    v3:
    Also fix signature of page_unprotect.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    stweil committed with blueswirl Apr 6, 2012
  11. softfloat: roundAndPackInt{32, 64}: Don't assume int32 is 32 bits

    Fix code in roundAndPackInt32 that assumed that int32 was only
    32 bits, by simply using int32_t instead. Fix the parallel bug
    in roundAndPackInt64 as well, although that one is only theoretical
    since it's unlikely that int64 will ever be more than 64 bits.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    pm215 committed with blueswirl Apr 5, 2012
  12. softfloat: float*_to_int32_round_to_zero: don't assume int32 is 32 bits

    Code in the float64_to_int32_round_to_zero() function was assuming
    that int32 would not be wider than 32 bits; this meant it might
    not correctly detect the overflow case. We take the simple approach
    of using int32_t. Also fix equivalent issues in the functions
    for other float sizes.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    pm215 committed with blueswirl Apr 5, 2012
  13. configure: require glib 2.12, 2.20 for mingw32

    These are pretty sane requirements to move forward with glib usage.
    2.12 is the version found in RHEL/CentOS 5, and 2.20 is the
    first version to support g_poll.  Without g_poll, we cannot
    integrate well with the glib main loop.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    bonzini committed with blueswirl Apr 5, 2012
  14. main-loop: integrate glib sources for w32

    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    bonzini committed with blueswirl Mar 20, 2012
  15. main-loop: replace WaitForMultipleObjects with g_poll

    On w32, glib implements g_poll using WaitForMultipleObjects
    or MsgWaitForMultipleObjects.  This means that we can simplify
    our code by switching to g_poll, and at the same time prepare for
    adding back glib sources.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    bonzini committed with blueswirl Mar 20, 2012
  16. main-loop: interrupt wait when data arrives on a socket

    Right now, the main loop is not interrupted when data arrives on a
    socket.  To fix this, register each socket to interrupt the main loop
    with WSAEventSelect.  This does not replace select, it only communicates
    a change in socket state that requires a select call.
    
    Since the interrupt fires only once per recv call, or only once
    after a send call returns EWOULDBLOCK we can activate it on all events
    unconditionally.  If QEMU is momentarily uninterested on some condition,
    the main loop will not busy wait.  Instead, it may get one extra wakeup,
    but then it will ignore the condition until progress occurs and/or
    qemu_set_fd_handler is called to set a callback.  At this point the
    condition will be tested via select and the callback will be invoked
    even if it is still disabled on the event.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    bonzini committed with blueswirl Mar 20, 2012
  17. main-loop: disable fd_set-based glib integration under w32

    Using select with glib pollfds is wrong under w32.  Restrict
    the code to the POSIX case.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    bonzini committed with blueswirl Mar 20, 2012
  18. main loop: use msec-based timeout in glib_select_fill

    The timeval-based timeout is not needed until we actually invoke select,
    so compute it only then.  Also group the two calls that modify the
    timeout, glib_select_fill and os_host_main_loop_wait.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    bonzini committed with blueswirl Mar 20, 2012
  19. 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>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    committed with blueswirl Apr 4, 2012
  20. 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>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    committed with blueswirl Apr 4, 2012
Commits on Apr 6, 2012
  1. Userspace ARM BE8 support

    Add support for ARM BE8 userspace binaries.
    i.e. big-endian data and little-endian code.
    In principle LE8 mode is also possible, but AFAIK has never actually
    been implemented/used.
    
    System emulation doesn't have any useable big-endian board models,
    but should in principle work once you fix that.
    Dynamic endianness switching requires messing with data accesses,
    preferably with TCG cooperation, and is orthogonal to BE8 support.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    [PMM: various changes, mostly as per my suggestions in code review:
     * rebase
     * use EF_ defines rather than hardcoded constants
     * make bswap_code a bool for future VMSTATE macro compatibility
     * update comment in cpu.h about TB flags bit field usage
     * factor out load-code-and-swap into arm_ld*_code functions and
       get_user_code* macros
     * fix stray trailing space at end of line
     * added braces in disas.c to satisfy checkpatch
    ]
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
    Paul Brook committed with suihkulokki Mar 30, 2012
  2. elf.h: Update EF_ARM_ constants to newer ABI versions

    Update the EF_ARM_* constants (for the ELF header e_flags field)
    to include the newer flags specified for later versions of the ABI.
    (This set of constants is from include/elf/arm.h from binutils-2.17
    and so licensed under GPL-v2-or-later.)
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
    pm215 committed with suihkulokki Mar 30, 2012