Skip to content

Commit 99ea311

Browse files
andrew-mtknashif
authored andcommitted
overlays/mtk: Add back Cadence-removed macro
See commit 7144272. There is no "predicted branches" extension in any version of the Xtensa ISA reference I have. Newer versions of Cadence tooling have removed (and presumably deprecated) this symbol, but binutils still relies on seeing it (even just to evaluate to a zero to diable the feature). Really the proper fix would be to patch binutils upstream, but let's have compatible headers here first. Signed-off-by: Andrew Perepech <[email protected]>
1 parent 151daa0 commit 99ea311

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

overlays/xtensa_mtk_mt8365_adsp/binutils/include/xtensa-config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,7 @@
187187

188188

189189
#endif /* !XTENSA_CONFIG_H */
190+
191+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
192+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
193+
#endif

overlays/xtensa_mtk_mt8365_adsp/gcc/include/xtensa-config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,7 @@
187187

188188

189189
#endif /* !XTENSA_CONFIG_H */
190+
191+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
192+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
193+
#endif

overlays/xtensa_mtk_mt8365_adsp/gdb/include/xtensa-config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,7 @@
187187

188188

189189
#endif /* !XTENSA_CONFIG_H */
190+
191+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
192+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
193+
#endif

0 commit comments

Comments
 (0)