Permalink
Commits on Feb 21, 2013
  1. target-unicore32: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  2. target-sparc: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Inline DEBUG_FEATURES and introduce features_printf() in cpu.c.
    Inline DEBUG_MMU in ldst_helper.c but leave DPRINTF_MMU() as is due
    to "MMU: " prefix.
    Inline DEBUG_{MXCC,ASI} in ldst_helper.c.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  3. target-s390x: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Rename dprintf() in kvm.c to kvm_dprintf() due to a conflict with glibc.
    
    Drop unused DEBUG_HELPER and LOG_HELPER() in fpu_helper.c.
    Drop unused LOG_DISAS() in translate.c and inline S390X_DEBUG_DISAS.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  4. target-ppc: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Rename dprintf() in kvm.c to kvm_dprintf() to avoid conflict with glibc.
    
    Inline DEBUG_OP check in excp_helper.c.
    Inline LOG_MMU_STATE() in mmu_helper.c.
    Inline PPC_{DEBUG_SPR,DUMP_SPR_ACCESSES} checks in translate_init.c.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  5. target-openrisc: Refactor debug output macros

    Debug output is already enabled and thus compile-testable, but align
    with other targets.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  6. target-microblaze: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Drop unused D(x) macros.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  7. target-lm32: Refactor debug output macros

    Already enabled and thus compile-tested, but align with other targets.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  8. target-i386: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Cc: Richard Henderson <rth@twiddle.net>
    committed Jan 27, 2013
  9. target-cris: Refactor debug output macros

    Make debug output compile-testable even if disabled.
    
    Introduce DPRINTF() in helper.c and consolidate stdout and stderr
    output.
    Introduce DPRINTF() in mmu.c and inline remaining D(x).
    
    Drop unused D(x) macros in op_helper.c and translate.c.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 24, 2013
  10. target-alpha: Refactor debug output macros

    Make LOG_DISAS() arguments compile-testable even if disabled.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 24, 2013
  11. target-cris/mmu.c: Update Coding Style of cris_mmu_translate_page()

    Reindent, add braces, adjust whitespace.
    
    Prepares for touching the logging macros.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 27, 2013
  12. target-cris/helper.c: Update Coding Style

    Reindent, add missing braces and drop/adjust whitespace.
    
    Prepares for CPUArchState-to-CPUState field movements in
    cpu_cris_handle_mmu_fault(), do_interruptv10() and do_interrupt().
    The remaining functions were so minor that they can be fixed in one go.
    
    Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Jan 25, 2013
  13. qemu-log: Introduce qemu_log_mask_vprintf()

    Corresponds to existing qemu_log_vprintf() but uses a mask.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Feb 14, 2013
  14. target-ppc: Move PPC_DUMP_CPU to translate.c

    There's an opcode handler field dependent on PPC_DUMP_CPU without which
    the build fails.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Feb 20, 2013
  15. target-ppc: Fix PPC_DUMP_SPR_ACCESS build

    A victim of the d523dd0 AREG0
    conversion, insert the missing cpu_env arguments.
    
    Cc: Blue Swirl <blauwirbel@gmail.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Feb 21, 2013
Commits on Feb 18, 2013
  1. vnc-tls: Fix compilation with newer versions of GNU-TLS

    In my installation of GNU-TLS (v3.0.23) the type
    gnutls_anon_server_credentials is marked deprecated, so -Werror
    breaks compilation.
    Simply replacing it with the newer ..._t version fixed the compilation
    on my machine (Slackware 14.0). I cannot tell how far back this "new"
    type goes, at least the header file in RHEL 5.0 (v1.4.1) seems to have
    it already. If someone finds a broken distribution, tell me and I
    insert some compat code.
    
    Signed-off-by: Andre Przywara <andre.przywara@amd.com>
    Message-id: 1350551818-14717-1-git-send-email-andre.przywara@amd.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    aprzywar committed with Anthony Liguori Oct 18, 2012
  2. doc help: Collect block device stuff under its own heading

    Collect them from "Standard options", "File system options", "Virtual
    File system pass-through options", "Debug/Expert options".
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-8-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  3. doc help: A few options are under inappropriate headings, fix

    --device is under heading "USB options".  --name and --uuid are under
    "Virtual File system pass-through options".  Move all three to
    "Standard options".
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-7-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  4. help: Fix markup of heading "USB options" so it appears in -help

    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-6-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  5. doc: Fix texinfo @table markup in qemu-options.hx

    End tables before headings, start new ones afterwards.  Fixes
    incorrect indentation of headings "File system options" and "Virtual
    File system pass-through options" in manual page and qemu-doc.
    
    Normalize markup some to increase chances it survives future edits.
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-5-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  6. doc: Fill some option doc gaps in manual page and qemu-doc

    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-4-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  7. doc: Fix some option entries in qemu-doc's function index

    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-3-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  8. help: Drop bogus help on -qtest and -qtest-log

    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Message-id: 1360781383-28635-2-git-send-email-armbru@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Feb 13, 2013
  9. isa: Split off instance_init for ISADevice

    Prepares for assigning IRQs before QOM realize.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Message-id: 1361010446-1427-1-git-send-email-afaerber@suse.de
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    committed with Anthony Liguori Feb 16, 2013
  10. qtest: Add MMIO support

    Introduce [qtest_]{read,write}[bwlq]() libqtest functions and
    corresponding QTest protocol commands to replace local versions in
    libi2c-omap.c.
    
    Also convert m48t59-test's cmos_{read,write}_mmio() to {read,write}b().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Message-id: 1361051043-27944-4-git-send-email-afaerber@suse.de
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    committed with Anthony Liguori Feb 16, 2013
  11. libqtest: Introduce qtest_qmpv() and convert remaining macro

    In order to convert qmp() macro to an inline function, expose a
    qtest_qmpv() function, reused by qtest_qmp().
    
    We can't apply GCC_FMT_ATTR() since fdc-test is using zero-length format
    strings, which would result in warnings treated as errors.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Message-id: 1361051043-27944-3-git-send-email-afaerber@suse.de
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    committed with Anthony Liguori Feb 16, 2013
  12. libqtest: Convert macros to functions and clean up documentation

    libqtest.h provides a number of shortcut macros to avoid tests feeding
    it the QTestState they operate on. Most of these can easily be turned
    into static inline functions, so let's do that for clarity.
    This avoids getting off-by-one error messages when passing wrong args.
    
    Some macros had a val argument but documented @value argument. Fix this.
    
    While touching things, enforce gtk-doc markup for return values and for
    referencing types.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Message-id: 1361051043-27944-2-git-send-email-afaerber@suse.de
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    committed with Anthony Liguori Feb 16, 2013
  13. Merge remote-tracking branch 'afaerber/qom-cpu' into staging

    # By Andreas Färber
    # Via Andreas Färber
    * afaerber/qom-cpu: (47 commits)
      target-i386: Split command line parsing out of cpu_x86_register()
      target-i386: Move cpu_x86_init()
      target-lm32: Drop unused cpu_lm32_close() prototype
      target-s390x: Drop unused cpu_s390x_close() prototype
      spapr_hcall: Replace open-coded CPU loop with qemu_get_cpu()
      ppce500_spin: Replace open-coded CPU loop with qemu_get_cpu()
      e500: Replace open-coded loop with qemu_get_cpu()
      cpu: Add CPUArchState pointer to CPUState
      cputlb: Pass CPUState to cpu_unlink_tb()
      cpu: Move current_tb field to CPUState
      cpu: Move exit_request field to CPUState
      cpu: Move running field to CPUState
      cpu: Move host_tid field to CPUState
      target-cris: Introduce CRISCPU subclasses
      target-m68k: Pass M68kCPU to m68k_set_irq_level()
      mcf_intc: Pass M68kCPU to mcf_intc_init()
      mcf5206: Pass M68kCPU to mcf5206_init()
      target-m68k: Return M68kCPU from cpu_m68k_init()
      ppc405_uc: Pass PowerPCCPU to ppc40x_{core,chip,system}_reset()
      target-xtensa: Move TCG initialization to XtensaCPU initfn
      ...
    Anthony Liguori committed Feb 18, 2013
Commits on Feb 17, 2013
  1. tests: Add unit tests for mulu64 and muls64

    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    rth7680 committed with blueswirl Feb 16, 2013
  2. host-utils: Improve mulu64 and muls64

    The new formulation makes better use of add-with-carry type insns
    that the host may have.  Use gcc's sign adjustment trick to avoid
    having to perform a 128-bit negation.
    
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    rth7680 committed with blueswirl Feb 16, 2013
  3. host-utils: Use __int128_t for mul[us]64

    Replace some x86_64 specific inline assembly with something that
    all 64-bit hosts ought to optimize well.  At worst this becomes
    a call to the gcc __multi3 routine, which is no worse than our
    implementation in util/host-utils.c.
    
    With gcc 4.7, we get identical code generation for x86_64.  We
    now get native multiplication on ia64 and s390x hosts.  With minor
    improvements to gcc we can get it for ppc64 as well.
    
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    rth7680 committed with blueswirl Feb 16, 2013
  4. tcg/ppc: Fix build of tcg_qemu_tb_exec()

    Commit 0b0d332 (TCG: Final globals
    clean-up) moved code_gen_prologue but forgot to update ppc code.
    This broke the build on 32-bit ppc. ppc64 is unaffected.
    
    Cc: Evgeny Voevodin <evgenyvoevodin@gmail.com>
    Cc: Blue Swirl <blauwirbel@gmail.com>
    Signed-off-by: Andreas Färber <andreas.faerber@web.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    committed with blueswirl Feb 16, 2013
Commits on Feb 16, 2013
  1. target-sparc: Fix debug output for DEBUG_MMU

    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    committed with blueswirl Jan 27, 2013
  2. target-i386: Split command line parsing out of cpu_x86_register()

    In order to instantiate a CPU subtype we will need to know which type,
    so move the cpu_model splitting into cpu_x86_init().
    
    Parameters need to be set on the X86CPU instance, so move
    cpu_x86_parse_featurestr() into cpu_x86_init() as well.
    
    This leaves cpu_x86_register() operating on the model name only.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Igor Mammedov <imammedo@redhat.com>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Feb 15, 2013
  3. target-i386: Move cpu_x86_init()

    Consolidate CPU functions in cpu.c.
    Allows to make cpu_x86_register() static.
    
    No functional changes.
    
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Feb 1, 2013