• Wang Feng's avatar
    FVP: change the method for translating MPIDR values to a linear indices · 39b21d19
    Wang Feng authored
    
    
    x3 will be assigned by the folloing instructions.
    So the first instruction is not needed any more.
    
    old method:
      (ClusterId * FVP_MAX_CPUS_PER_CLUSTER)
    + (CPUId * FVP_MAX_PE_PER_CPU)
    + ThreadId
    
    it should be
      (ClusterId * FVP_MAX_CPUS_PER_CLUSTER) * FVP_MAX_PE_PER_CPU
    + (CPUId * FVP_MAX_PE_PER_CPU)
    + ThreadId
    
    which can be simplified as:
    (ClusterId * FVP_MAX_CPUS_PER_CLUSTER + CPUId) * FVP_MAX_PE_PER_CPU + ThreadId
    Signed-off-by: default avatarWang Feng <feng_feng.wang@spreadtrum.com>
    39b21d19
fvp_helpers.S 6.46 KB