Skip to content

Commit

Permalink
overlays/mtk: Add "xtensa_rmap" alias
Browse files Browse the repository at this point in the history
The name of this array changed in upstream bintuils commit
2b16913cdca2 ("gdb: make gdbarch_alloc take ownership of the tdep").

So far, the Zephyr SDK doesn't seem to want to use that version, but
add an alias so it builds with upstream crosstools-ng, and commit it
here as a reference if we want to port the other Xtensa overlays.

Signed-off-by: Andy Ross <andyross@google.com>
  • Loading branch information
andyross committed Dec 1, 2024
1 parent f13ee75 commit d9e891f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion overlays/xtensa_mtk_mt818x_adsp/gdb/gdb/xtensa-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ xtensa_register_t rmap[] =
XTREG_END
};


extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap")));

#ifdef XTENSA_CONFIG_INSTANTIATE
XTENSA_CONFIG_INSTANTIATE(rmap,16)
Expand Down
2 changes: 2 additions & 0 deletions overlays/xtensa_mtk_mt8195_adsp/gdb/gdb/xtensa-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,4 +496,6 @@ static xtensa_register_t rmap[] =
XTREG_END
};

extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap")));

xtensa_gdbarch_tdep xtensa_tdep (rmap);
2 changes: 1 addition & 1 deletion overlays/xtensa_mtk_mt8196_adsp/gdb/gdb/xtensa-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ xtensa_register_t rmap[] =
XTREG_END
};


extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap")));

#ifdef XTENSA_CONFIG_INSTANTIATE
XTENSA_CONFIG_INSTANTIATE(rmap,16)
Expand Down

0 comments on commit d9e891f

Please sign in to comment.