Merge branch 'bugfix/init_memctl' into 'master'

bootloader, esp32: add workaround for Tensilica erratum 572

See merge request idf/esp-idf!3605
This commit is contained in:
Ivan Grokhotkov
2018-11-19 18:36:47 +08:00
4 changed files with 23 additions and 0 deletions

View File

@@ -1401,5 +1401,16 @@ extern const unsigned int XCJOIN(Xthal_cp_mask_,XCHAL_CP7_IDENT);
#define XCHAL_ERRATUM_497 0
#endif
/*
* Erratum 572 (releases TBD, but present in ESP32)
* Disable zero-overhead loop buffer to prevent rare illegal instruction
* exceptions while executing zero-overhead loops.
*/
#if ( XCHAL_HAVE_LOOPS && XCHAL_LOOP_BUFFER_SIZE != 0 )
#define XCHAL_ERRATUM_572 1
#else
#define XCHAL_ERRATUM_572 0
#endif
#endif /*XTENSA_CONFIG_CORE_H*/