feat(brc_predictor): p4 base support for branch predictor
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
211c3c0e05
commit
bc182ef010
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -550,6 +550,16 @@ FORCE_INLINE_ATTR intptr_t esp_cpu_get_call_addr(intptr_t return_address)
|
||||
*/
|
||||
bool esp_cpu_compare_and_set(volatile uint32_t *addr, uint32_t compare_value, uint32_t new_value);
|
||||
|
||||
#if SOC_BRANCH_PREDICTOR_SUPPORTED
|
||||
/**
|
||||
* @brief Enable branch prediction
|
||||
*/
|
||||
FORCE_INLINE_ATTR void esp_cpu_branch_prediction_enable(void)
|
||||
{
|
||||
rv_utils_en_branch_predictor();
|
||||
}
|
||||
#endif //#if SOC_BRANCH_PREDICTOR_SUPPORTED
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user