Skip to content

Avoid hard-coding some labels in the bitfield generation #12

@sampsyo

Description

@sampsyo

Some labels for fields in instructions are hard-coded:

if (hi === 31 && lo === 25) label = `funct7=${bits}`;
else if (hi === 14 && lo === 12) label = `funct3=${bits}`;
else if (hi === 6 && lo === 0) label = `opcode=${bits}`;

Let's avoid that and somehow try to derive all bitfield labels from the underlying data.

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