Skip to content

Commit

Permalink
overlays/mtk: Add back Cadence-removed macro
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
andyross committed Dec 1, 2024
1 parent 664c710 commit f13ee75
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@


#endif /* !XTENSA_CONFIG_H */

#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
#endif
4 changes: 4 additions & 0 deletions overlays/xtensa_mtk_mt818x_adsp/gcc/include/xtensa-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@


#endif /* !XTENSA_CONFIG_H */

#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
#endif
4 changes: 4 additions & 0 deletions overlays/xtensa_mtk_mt818x_adsp/gdb/include/xtensa-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@


#endif /* !XTENSA_CONFIG_H */

#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@


#endif /* !XTENSA_CONFIG_H */

#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
#endif
4 changes: 4 additions & 0 deletions overlays/xtensa_mtk_mt8196_adsp/gcc/include/xtensa-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@


#endif /* !XTENSA_CONFIG_H */

#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
#endif
4 changes: 4 additions & 0 deletions overlays/xtensa_mtk_mt8196_adsp/gdb/include/xtensa-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@


#endif /* !XTENSA_CONFIG_H */

#ifndef XCHAL_HAVE_PREDICTED_BRANCHES
#define XCHAL_HAVE_PREDICTED_BRANCHES 0 /* Needed by Zephyr SDK binutils */
#endif

0 comments on commit f13ee75

Please sign in to comment.