1. 18 4月, 2014 2 次提交
  2. 18 3月, 2014 3 次提交
  3. 14 3月, 2014 2 次提交
  4. 10 3月, 2014 1 次提交
  5. 27 2月, 2014 1 次提交
  6. 20 2月, 2014 3 次提交
  7. 08 2月, 2014 1 次提交
  8. 31 1月, 2014 8 次提交
  9. 09 1月, 2014 3 次提交
    • W
      target-arm: Rename A32 VFP conversion helpers · 16d5b3ca
      Will Newton 提交于
      The VFP conversion helpers for A32 round to zero as this is the only
      rounding mode supported. Rename these helpers to make it clear that
      they round to zero and are not suitable for use in the AArch64 code.
      Signed-off-by: NWill Newton <will.newton@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      16d5b3ca
    • P
      target-arm: Use VFP_BINOP macro for min, max, minnum, maxnum · f71a2ae5
      Peter Maydell 提交于
      Use the VFP_BINOP macro to provide helpers for min, max, minnum
      and maxnum, rather than hand-rolling them. (The float64 max
      version is not used by A32 but will be needed for A64.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      f71a2ae5
    • 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
  10. 08 1月, 2014 4 次提交
    • W
      target-arm: Rename A32 VFP conversion helpers · 6ab748af
      Will Newton 提交于
      The VFP conversion helpers for A32 round to zero as this is the only
      rounding mode supported. Rename these helpers to make it clear that
      they round to zero and are not suitable for use in the AArch64 code.
      Signed-off-by: NWill Newton <will.newton@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      6ab748af
    • P
      target-arm: Use VFP_BINOP macro for min, max, minnum, maxnum · 286cb8b9
      Peter Maydell 提交于
      Use the VFP_BINOP macro to provide helpers for min, max, minnum
      and maxnum, rather than hand-rolling them. (The float64 max
      version is not used by A32 but will be needed for A64.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      286cb8b9
    • 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
    • P
      target-arm: Remove ARMCPU/CPUARMState from cpregs APIs used by decoder · 60322b39
      Peter Maydell 提交于
      The cpregs APIs used by the decoder (get_arm_cp_reginfo() and
      cp_access_ok()) currently take either a CPUARMState* or an ARMCPU*.
      This is problematic for the A64 decoder, which doesn't pass the
      environment pointer around everywhere the way the 32 bit decoder
      does. Adjust the parameters these functions take so that we can
      copy only the relevant info from the CPUARMState into the
      DisasContext and then use that.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      60322b39
  11. 18 12月, 2013 3 次提交
  12. 10 12月, 2013 5 次提交
  13. 11 10月, 2013 1 次提交
  14. 11 9月, 2013 3 次提交
    • A
      target-arm: Add AArch64 translation stub · 14ade10f
      Alexander Graf 提交于
      We should translate AArch64 mode separately from AArch32 mode. In AArch64 mode,
      registers look vastly different, instruction encoding is completely different,
      basically the system turns into a different machine.
      
      So let's do a simple if() in translate.c to decide whether we can handle the
      current code in the legacy AArch32 code or in the new AArch64 code.
      
      So far, the translation always complains about unallocated instructions. There
      is no emulator functionality in this patch!
      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-11-git-send-email-peter.maydell@linaro.org
      Message-id: 1368505980-17151-5-git-send-email-john.rigby@linaro.org
      [PMM:
       * provide no-op versions of a64 functions ifndef TARGET_AARCH64;
         this lets us avoid #ifdefs in translate.c
       * insert the missing call to disas_a64_insn()
       * stash the insn in the DisasContext rather than reloading it in
         real_unallocated_encoding()
      ]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      14ade10f
    • 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
    • P
      target-arm: Pass DisasContext* to gen_set_pc_im() · eaed129d
      Peter Maydell 提交于
      We want gen_set_pc_im() to work for both AArch64 and AArch32, but
      to do this we'll need the DisasContext* so we can tell which mode
      we're in, so pass it in as a parameter.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1378235544-22290-7-git-send-email-peter.maydell@linaro.org
      eaed129d