Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions