Skip to content

Commit d9e891f

Browse files
committed
overlays/mtk: Add "xtensa_rmap" alias
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 <[email protected]>
1 parent f13ee75 commit d9e891f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

overlays/xtensa_mtk_mt818x_adsp/gdb/gdb/xtensa-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ xtensa_register_t rmap[] =
555555
XTREG_END
556556
};
557557

558-
558+
extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap")));
559559

560560
#ifdef XTENSA_CONFIG_INSTANTIATE
561561
XTENSA_CONFIG_INSTANTIATE(rmap,16)

overlays/xtensa_mtk_mt8195_adsp/gdb/gdb/xtensa-config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,4 +496,6 @@ static xtensa_register_t rmap[] =
496496
XTREG_END
497497
};
498498

499+
extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap")));
500+
499501
xtensa_gdbarch_tdep xtensa_tdep (rmap);

overlays/xtensa_mtk_mt8196_adsp/gdb/gdb/xtensa-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ xtensa_register_t rmap[] =
555555
XTREG_END
556556
};
557557

558-
558+
extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap")));
559559

560560
#ifdef XTENSA_CONFIG_INSTANTIATE
561561
XTENSA_CONFIG_INSTANTIATE(rmap,16)

0 commit comments

Comments
 (0)