Skip to content

Purpose of map in tw_lptype for built-in mappings #192

@gkaf89

Description

@gkaf89

Why map in tw_lptype must be defined manually in built-in mappings? In custom mappings the map field is required to assign LPs to their PE. In built-in mappings the map field must also be specified even though it seems that there enough information to set it automatically.

For instance, for the built-in mappings a function like the following should provide the PE mapping automatically:

tw_peid map(tw_lp id) {
    return g_tw_lp[id]->pe->id;
}

Am I missing something, or it's just that the configuration of the map field has not yet been automated for built-in mappings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions