1. 24 2月, 2017 1 次提交
  2. 27 1月, 2017 2 次提交
  3. 25 1月, 2017 1 次提交
  4. 21 12月, 2016 1 次提交
    • T
      Move target-* CPU file into a target/ folder · fcf5ef2a
      Thomas Huth 提交于
      We've currently got 18 architectures in QEMU, and thus 18 target-xxx
      folders in the root folder of the QEMU source tree. More architectures
      (e.g. RISC-V, AVR) are likely to be included soon, too, so the main
      folder of the QEMU sources slowly gets quite overcrowded with the
      target-xxx folders.
      To disburden the main folder a little bit, let's move the target-xxx
      folders into a dedicated target/ folder, so that target-xxx/ simply
      becomes target/xxx/ instead.
      
      Acked-by: Laurent Vivier <laurent@vivier.eu> [m68k part]
      Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> [tricore part]
      Acked-by: Michael Walle <michael@walle.cc> [lm32 part]
      Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x part]
      Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> [s390x part]
      Acked-by: Eduardo Habkost <ehabkost@redhat.com> [i386 part]
      Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> [sparc part]
      Acked-by: Richard Henderson <rth@twiddle.net> [alpha part]
      Acked-by: Max Filippov <jcmvbkbc@gmail.com> [xtensa part]
      Reviewed-by: David Gibson <david@gibson.dropbear.id.au> [ppc part]
      Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [cris&microblaze part]
      Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32 part]
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      fcf5ef2a
  5. 04 10月, 2016 1 次提交
  6. 20 7月, 2016 1 次提交
  7. 17 6月, 2016 1 次提交
  8. 19 5月, 2016 2 次提交
  9. 26 2月, 2016 2 次提交
  10. 19 1月, 2016 1 次提交
  11. 13 1月, 2016 1 次提交
  12. 24 9月, 2015 1 次提交
  13. 21 7月, 2015 1 次提交
  14. 19 6月, 2015 1 次提交
  15. 12 6月, 2015 1 次提交
    • J
      migration: Use normal VMStateDescriptions for Subsections · 5cd8cada
      Juan Quintela 提交于
      We create optional sections with this patch.  But we already have
      optional subsections.  Instead of having two mechanism that do the
      same, we can just generalize it.
      
      For subsections we just change:
      
      - Add a needed function to VMStateDescription
      - Remove VMStateSubsection (after removal of the needed function
        it is just a VMStateDescription)
      - Adjust the whole tree, moving the needed function to the corresponding
        VMStateDescription
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      5cd8cada
  16. 26 1月, 2015 1 次提交
  17. 11 12月, 2014 1 次提交
  18. 24 10月, 2014 2 次提交
  19. 30 9月, 2014 1 次提交
  20. 12 9月, 2014 1 次提交
  21. 28 5月, 2014 4 次提交
  22. 13 5月, 2014 1 次提交
  23. 06 5月, 2014 1 次提交
  24. 18 4月, 2014 4 次提交
    • P
      target-arm: Implement AArch64 SPSR_EL1 · a65f1de9
      Peter Maydell 提交于
      Implement the AArch64 SPSR_EL1. For compatibility with how KVM
      handles SPSRs and with the architectural mapping between AArch32
      and AArch64, we put this in the banked_spsr[] array in the slot
      that is used for SVC in AArch32. This means we need to extend the
      array from uint32_t to uint64_t, which requires some reworking
      of the 32 bit KVM save/restore code.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Acked-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      a65f1de9
    • P
      target-arm: Implement SP_EL0, SP_EL1 · f502cfc2
      Peter Maydell 提交于
      Implement handling for the AArch64 SP_EL0 system register.
      This holds the EL0 stack pointer, and is only accessible when
      it's not being used as the stack pointer, ie when we're in EL1
      and EL1 is using its own stack pointer. We also provide a
      definition of the SP_EL1 register; this isn't guest visible
      as a system register for an implementation like QEMU which
      doesn't provide EL2 or EL3; however it is useful for ensuring
      the underlying state is migrated.
      
      We need to update the state fields in the CPU state whenever
      we switch stack pointers; this happens when we take an exception
      and also when SPSEL is used to change the bit in PSTATE which
      indicates which stack pointer EL1 should use.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      f502cfc2
    • P
      target-arm: Add AArch64 ELR_EL1 register. · a0618a19
      Peter Maydell 提交于
      Add the AArch64 ELR_EL1 register.
      
      Note that this does not live in env->cp15: for KVM migration
      compatibility we need to migrate it separately rather than
      as part of the system registers, because the KVM-to-userspace
      interface puts it in the struct kvm_regs rather than making
      them visible via the ONE_REG ioctls.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      a0618a19
    • P
      target-arm: Define exception record for AArch64 exceptions · abf1172f
      Peter Maydell 提交于
      For AArch32 exceptions, the only information provided about
      the cause of an exception is the individual exception type (data
      abort, undef, etc), which we store in cs->exception_index. For
      AArch64, the CPU provides much more detail about the cause of
      the exception, which can be found in the syndrome register.
      Create a set of fields in CPUARMState which must be filled in
      whenever an exception is raised, so that exception entry can
      correctly fill in the syndrome register for the guest.
      This includes the information which in AArch32 appears in
      the DFAR and IFAR (fault address registers) and the DFSR
      and IFSR (fault status registers) for data aborts and
      prefetch aborts, since if we end up taking the MMU fault
      to AArch64 rather than AArch32 this will need to end up
      in different system registers.
      
      This patch does a refactoring which moves the setting of the
      AArch32 DFAR/DFSR/IFAR/IFSR from the point where the exception
      is raised to the point where it is taken. (This is no change
      for cores with an MMU, retains the existing clearly incorrect
      behaviour for ARM946 of trashing the MP access permissions
      registers which share the c5_data and c5_insn state fields,
      and has no effect for v7M because we don't implement its
      MPU fault status or address registers.)
      
      As a side effect of the cleanup we fix a bug in the AArch64
      linux-user mode code where we were passing a 64 bit fault
      address through the 32 bit c6_data/c6_insn fields: it now
      goes via the always-64-bit exception.vaddress.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      abf1172f
  25. 27 3月, 2014 1 次提交
  26. 09 1月, 2014 1 次提交
    • P
      target-arm: Widen exclusive-access support struct fields to 64 bits · 03d05e2d
      Peter Maydell 提交于
      In preparation for adding support for A64 load/store exclusive instructions,
      widen the fields in the CPU state struct that deal with address and data values
      for exclusives from 32 to 64 bits. Although in practice AArch64 and AArch32
      exclusive accesses will be generally separate there are some odd theoretical
      corner cases (eg you should be able to do the exclusive load in AArch32, take
      an exception to AArch64 and successfully do the store exclusive there), and it's
      also easier to reason about.
      
      The changes in semantics for the variables are:
       exclusive_addr  -> extended to 64 bits; -1ULL for "monitor lost",
         otherwise always < 2^32 for AArch32
       exclusive_val   -> extended to 64 bits. 64 bit exclusives in AArch32 now
         use the high half of exclusive_val instead of a separate exclusive_high
       exclusive_high  -> is no longer used in AArch32; extended to 64 bits as
         it will be needed for AArch64's pair-of-64-bit-values exclusives.
       exclusive_test  -> extended to 64 bits, as it is an address. Since this is
         a linux-user-only field, in arm-linux-user it will always have the top
         32 bits zero.
       exclusive_info  -> stays 32 bits, as it is neither data nor address, but
         simply holds register indexes etc. AArch64 will be able to fit all its
         information into 32 bits as well.
      
      Note that the refactoring of gen_store_exclusive() coincidentally fixes
      a minor bug where ldrexd would incorrectly update the first CPU register
      even if the load for the second register faulted.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      03d05e2d
  27. 08 1月, 2014 1 次提交
    • P
      target-arm: Widen exclusive-access support struct fields to 64 bits · 90ba562c
      Peter Maydell 提交于
      In preparation for adding support for A64 load/store exclusive instructions,
      widen the fields in the CPU state struct that deal with address and data values
      for exclusives from 32 to 64 bits. Although in practice AArch64 and AArch32
      exclusive accesses will be generally separate there are some odd theoretical
      corner cases (eg you should be able to do the exclusive load in AArch32, take
      an exception to AArch64 and successfully do the store exclusive there), and it's
      also easier to reason about.
      
      The changes in semantics for the variables are:
       exclusive_addr  -> extended to 64 bits; -1ULL for "monitor lost",
         otherwise always < 2^32 for AArch32
       exclusive_val   -> extended to 64 bits. 64 bit exclusives in AArch32 now
         use the high half of exclusive_val instead of a separate exclusive_high
       exclusive_high  -> is no longer used in AArch32; extended to 64 bits as
         it will be needed for AArch64's pair-of-64-bit-values exclusives.
       exclusive_test  -> extended to 64 bits, as it is an address. Since this is
         a linux-user-only field, in arm-linux-user it will always have the top
         32 bits zero.
       exclusive_info  -> stays 32 bits, as it is neither data nor address, but
         simply holds register indexes etc. AArch64 will be able to fit all its
         information into 32 bits as well.
      
      Note that the refactoring of gen_store_exclusive() coincidentally fixes
      a minor bug where ldrexd would incorrectly update the first CPU register
      even if the load for the second register faulted.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      90ba562c
  28. 11 9月, 2013 1 次提交
    • A
      target-arm: Prepare translation for AArch64 code · 3926cc84
      Alexander Graf 提交于
      This patch adds all the prerequisites for AArch64 support that didn't
      fit into split up patches. It extends important bits in the core cpu
      headers to also take AArch64 mode into account.
      
      Add new ARM_TBFLAG_AARCH64_STATE translation buffer flag
      indicate an ARMv8 cpu running in aarch64 mode vs aarch32 mode.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NJohn Rigby <john.rigby@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1378235544-22290-10-git-send-email-peter.maydell@linaro.org
      Message-id: 1368505980-17151-4-git-send-email-john.rigby@linaro.org
      [PMM:
       * rearranged tbflags so AArch64? is bit 31 and if it is set then
        30..0 are freely available for whatever makes most sense for that mode
       * added version bump since we change VFP migration state
       * added a comment about how VFP/Neon register state works
       * physical address space is 48 bits, not 64
       * added ARM_FEATURE_AARCH64 flag to identify 64-bit capable CPUs
      ]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3926cc84
  29. 20 8月, 2013 1 次提交
  30. 26 6月, 2013 1 次提交