Skip to content
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

Use a unique class name for ody perv target #87

Merged
merged 1 commit into from
Feb 8, 2024
Merged
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
12 changes: 12 additions & 0 deletions libpdbg/p10_fapi_targets.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,17 @@ static struct chiplet p10_chiplet = {
};
DECLARE_HW_UNIT(p10_chiplet);

static struct chiplet ody_chiplet = {
.target = {
.name = "POWER10 Ody Chiplet",
.compatible = "ibm,ody-chiplet",
.class = "ody_chiplet",
.translate = translate_cast(p10_chiplet_translate),
},
.getring = p10_chiplet_getring,
};
DECLARE_HW_UNIT(ody_chiplet);

static uint64_t no_translate(struct pdbg_target *target, uint64_t addr)
{
/* No translation performed */
Expand Down Expand Up @@ -658,6 +669,7 @@ static void register_p10_fapi_targets(void)
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_pauc_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_pau_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_chiplet_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &ody_chiplet_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_fc_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_smpgroup_hw_unit);
pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_mem_port_hw_unit);
Expand Down
Loading