Skip to content

Refactor to split Opcode by instruction format #4

Description

@michaelmelanson

Currently there's one Opcode enum which defines all the opcodes. This means it's possible to create nonsense instructions that should not ever appear in RISC-V code, such as opcodes for the wrong instruction format.

This should be split apart so each instruction format has a separate opcode enum, to get better type safety.

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions