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

Added LoongArch architecture name #112

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion seccomp.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func GetArchFromString(arch string) (ScmpArch, error) {
return ArchPARISC64, nil
case "riscv64":
return ArchRISCV64, nil
case "loongarch64":
case "loong64", "loongarch64":
Copy link
Contributor

Choose a reason for hiding this comment

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

From what I see, the official name is loongarch64. While I find the arch substring redundant, it is what it is. For example, see https://github.com/seccomp/libseccomp/blob/7db46d72f13c172b290818f624c2966bd0db5677/src/arch.c#L210 in which we only have loongarch64 and not loong64.

return ArchLOONGARCH64, nil
case "m68k":
return ArchM68K, nil
Expand Down
Loading