1. 09 1月, 2014 26 次提交
  2. 08 1月, 2014 4 次提交
    • P
      target-arm: Widen thread-local register state fields to 64 bits · e4fe830b
      Peter Maydell 提交于
      The common pattern for system registers in a 64-bit capable ARM
      CPU is that when in AArch32 the cp15 register is a view of the
      bottom 32 bits of the 64-bit AArch64 system register; writes in
      AArch32 leave the top half unchanged. The most natural way to
      model this is to have the state field in the CPU struct be a
      64 bit value, and simply have the AArch32 TCG code operate on
      a pointer to its lower half.
      
      For aarch64-linux-user the only registers we need to share like
      this are the thread-local-storage ones. Widen their fields to
      64 bits and provide the 64 bit reginfo struct to make them
      visible in AArch64 state. Note that minor cleanup of the AArch64
      system register encoding space means We can share the TPIDR_EL1
      reginfo but need split encodings for TPIDR_EL0 and TPIDRRO_EL0.
      
      Since we're touching almost every line in QEMU that uses the
      c13_tls* fields in this patch anyway, we take the opportunity
      to rename them in line with the standard ARM architectural names
      for these registers.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      e4fe830b
    • P
      target-arm: A64: Implement minimal set of EL0-visible sysregs · b0d2b7d0
      Peter Maydell 提交于
      Implement an initial minimal set of EL0-visible system registers:
       * NZCV
       * FPCR
       * FPSR
       * CTR_EL0
       * DCZID_EL0
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Reviewed-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      b0d2b7d0
    • P
      target-arm: A64: Implement MRS/MSR/SYS/SYSL · fea50522
      Peter Maydell 提交于
      The AArch64 equivalent of the traditional AArch32
      cp15 coprocessor registers is the set of instructions
      MRS/MSR/SYS/SYSL, which cover between them both true
      system registers and the "operations with side effects"
      such as cache maintenance which in AArch32 are mixed
      in with other cp15 registers. Implement these instructions
      to look in the cpregs hashtable for the register or
      operation.
      
      Since we don't yet populate the cpregs hashtable with
      any registers with the "AA64" bit set, everything will
      still UNDEF at this point.
      
      MSR/MRS is the first user of is_jmp = DISAS_UPDATE, so
      fix an infelicity in its handling where the main loop
      was requiring the caller to do the update of PC rather
      than just doing it itself.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      fea50522
    • 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
  3. 05 1月, 2014 2 次提交
  4. 24 12月, 2013 8 次提交