Skip to content

Handling of V extension is incorrect #1282

@Timmmm

Description

@Timmmm

We currently treat V as meaning "vector is supported", as you might logically expect.

In fact it doesn't mean that - it means vector is supported and vlen >= 128 and elen == 64 (and F & D support).

This affects the ISA string, and misa.v.

I think the simplest fix, congruent with our planned handling of Zvl128 etc. is:

  1. Change the "vector is supported" knob in the config from extensions.V.supported to something like base.vector_supported.
  2. Change
function clause hartSupports(Ext_V) = config extensions.V.supported

to something like:

function vectorSupported() -> bool = config base.vector_supported

function clause hartSupports(Ext_V) = vectorSupported() & vlen >= 128 & elen == 64

Similarly for currentlyEnabled(Ext_V).

Open to other suggestions though.

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