Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support partial vector extension instructions #545

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ $(call set-feature, EXT_C)
ENABLE_RV32E ?= 0
$(call set-feature, RV32E)

# Vector extension instructions
ENABLE_EXT_V ?= 0
$(call set-feature, EXT_V)
VLEN ?= 128 # Default VLEN is 128
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall this moved into the conditional block of ifeq ($(call has, EXT_V), 1) ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I'll move VLEN ?= 128 into the conditional block. Thanks for pointing that out.

ifeq ($(call has, EXT_V), 1)
CFLAGS += -DVLEN=$(VLEN)
ENABLE_EXT_F ?= 1
$(call set-feature, EXT_F)
endif

# Control and Status Register (CSR)
ENABLE_Zicsr ?= 1
$(call set-feature, Zicsr)
Expand Down
Loading
Loading