Skip to content

arc: Set tp regno to 26 for Zephyr #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: zephyr-gcc-12.1.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gcc/config/arc/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ along with GCC; see the file COPYING3. If not see
# endif
#endif

/* Bare-metal toolchains do not need a thread pointer register. */
/* Zephyr toolchain use register 26 as a thread pointer register. */
#undef TARGET_ARC_TP_REGNO_DEFAULT
#define TARGET_ARC_TP_REGNO_DEFAULT -1
#define TARGET_ARC_TP_REGNO_DEFAULT 26

/* Indexed loads are default. */
#undef TARGET_INDEXED_LOADS_DEFAULT
Expand Down