Skip to content

Wrong encoding for C extension on golang #203

@MouseSplinter

Description

@MouseSplinter

Hi, all,
I find that current encoding for C extension on golang is wrong. And the struct inst doesn't adapt 16 bit compressed instruction well.Is there any plan to solve this problem? If not, I want to extend the struct inst with some field named like rvc_funct3rvc_funct4rvc_funct2 and rvc_funct6 , which I can encode compressed instruction to. Or, maybe I should reuse the funct7 and funct3 to encode the funct3funct4funct2 and funct6 of compressed instruction. Which method would you like to take to meet the golang codegen?

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