Skip to content

Commit 7144272

Browse files
andyrossstephanosio
authored andcommitted
overlays/mtk: Add back Cadence-removed macro
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: Andy Ross <[email protected]>
1 parent 5353308 commit 7144272

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

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

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

184184

185185
#endif /* !XTENSA_CONFIG_H */
186+
187+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
188+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
189+
#endif

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

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

184184

185185
#endif /* !XTENSA_CONFIG_H */
186+
187+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
188+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
189+
#endif

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

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

184184

185185
#endif /* !XTENSA_CONFIG_H */
186+
187+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
188+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
189+
#endif

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

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

184184

185185
#endif /* !XTENSA_CONFIG_H */
186+
187+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
188+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
189+
#endif

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

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

184184

185185
#endif /* !XTENSA_CONFIG_H */
186+
187+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
188+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
189+
#endif

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

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

184184

185185
#endif /* !XTENSA_CONFIG_H */
186+
187+
#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
188+
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
189+
#endif

0 commit comments

Comments
 (0)