Changeset 9eec7bc in mainline


Ignore:
Timestamp:
2013-01-20T00:11:41Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9043e7e0
Parents:
3fa509b
Message:

arm32: Enable branch predictors on Cortex-A8.

It seems to work ok on bbxm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/cpu/cpu.c

    r3fa509b r9eec7bc  
    132132        /* Turn off accessed flag, RAZ/WI prior to armv7 */
    133133        control_reg &= ~(SCTLR_ACCESS_FLAG_EN_FLAG | SCTLR_HW_ACCESS_FLAG_EN_FLAG);
    134         /* Disable branch prediction RAZ/WI if not supported */
    135         control_reg &= ~SCTLR_BRANCH_PREDICT_EN_FLAG;
    136134
    137135        /* Unaligned access is supported on armv6+ */
     
    162160          * Cortex-A8 TRM ch. 7.2.6 p. 7-4 (PDF 245) */
    163161        control_reg |= SCTLR_INST_CACHE_EN_FLAG;
     162        /* Enable branch prediction RAZ/WI if not supported */
     163        control_reg |= SCTLR_BRANCH_PREDICT_EN_FLAG;
    164164#endif
    165165        SCTLR_write(control_reg);
Note: See TracChangeset for help on using the changeset viewer.