Skip to content
Snippets Groups Projects
  1. Sep 25, 2014
  2. Sep 12, 2014
  3. Aug 12, 2014
  4. Jun 05, 2014
  5. May 28, 2014
  6. May 26, 2014
  7. Mar 13, 2014
  8. Feb 24, 2014
  9. Feb 11, 2014
  10. Nov 08, 2013
  11. Oct 15, 2013
  12. Oct 10, 2013
  13. Sep 02, 2013
  14. Aug 22, 2013
  15. Jul 29, 2013
    • Max Filippov's avatar
      target-xtensa: check register window inline · 908c67fc
      Max Filippov authored
      
      This lowers time spent in helper_window_check as reported by perf top
      from ~8% to ~0.15% accelerating register-intensive tests by ~20%.
      
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      908c67fc
    • Max Filippov's avatar
      target-xtensa: don't generate dead code to access invalid SRs · 0857a06e
      Max Filippov authored
      
      This fixes the following test failure caused by access to undefined SR:
      
          qemu-system-xtensa -M sim -cpu dc232b -nographic -semihosting  -kernel ./test_sr.tst
          QEMU 1.4.50 monitor - type 'help' for more information
          (qemu) QEMU 1.4.50 monitor - type 'help' for more information
          (qemu) qemu-system-xtensa: tcg/tcg.c:1673: temp_save: Assertion `s->temps[temp].val_type == 2 || s->temps[temp].fixed_reg' failed.
      
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      0857a06e
    • Max Filippov's avatar
      target-xtensa: avoid double-stopping at breakpoints · a00817cc
      Max Filippov authored
      
      env->exception_taken is set every time an exception is taken. It is used
      to allow single-stepping to stop at the first exception handler
      instruction. This however must exclude debug exceptions, as otherwise
      first step from the instruction where breakpoint was hit stops at that
      same instruction.
      Also don't check env->exception_taken directly from the
      gen_intermediate_code_internal, instead allocate and use TB flag
      XTENSA_TBFLAG_EXCEPTION.
      
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      a00817cc
    • Max Filippov's avatar
      target-xtensa: add fallthrough markers · 5739006b
      Max Filippov authored
      
      Explicitly mark cases where we are deliberately falling through to the
      following code.
      
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      5739006b
    • Andreas Färber's avatar
      cpu: Partially revert "cpu: Change qemu_init_vcpu() argument to CPUState" · 14a10fc3
      Andreas Färber authored
      
      Commit c643bed9 moved qemu_init_vcpu() calls to common CPUState code.
      This causes x86 cpu-add to fail with "KVM: setting VAPIC address failed".
      
      The reason for the failure is that CPUClass::kvm_fd is not yet
      initialized in the following call graph:
      ->x86_cpu_realizefn
       ->x86_cpu_apic_realize
        ->qdev_init
         ->device_set_realized
          ->device_reset (hotplugged == 1)
           ->apic_reset_common
            ->vapic_base_update
             ->kvm_apic_vapic_base_update
      This causes attempted KVM vCPU ioctls to fail.
      
      By contrast, in the non-hotplug case the APIC is reset much later, when
      the vCPU is already initialized.
      
      As a quick and safe solution, move the qemu_init_vcpu() call back into
      the targets' realize functions.
      
      Reported-by: default avatarChen Fan <chen.fan.fnst@cn.fujitsu.com>
      Acked-by: Igor Mammedov <imammedo@redhat.com> (for i386)
      Tested-by: Jia Liu <proljc@gmail.com> (for openrisc)
      Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
      14a10fc3
Loading