diff options
Diffstat (limited to 'pkg/compiler')
| -rw-r--r-- | pkg/compiler/types.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/compiler/types.go b/pkg/compiler/types.go index e022efafe..86876b69d 100644 --- a/pkg/compiler/types.go +++ b/pkg/compiler/types.go @@ -641,7 +641,7 @@ var typeText = &typeDesc{ var typeArgTextType = &typeArg{ Kind: kindIdent, - Names: []string{"target", "x86_real", "x86_16", "x86_32", "x86_64", "arm64", "ppc64"}, + Names: []string{"target", "x86_real", "x86_16", "x86_32", "x86_64", "arm64", "ppc64", "riscv64"}, } func genTextType(t *ast.Type) prog.TextKind { @@ -660,6 +660,8 @@ func genTextType(t *ast.Type) prog.TextKind { return prog.TextArm64 case "ppc64": return prog.TextPpc64 + case "riscv64": + return prog.TextTarget default: panic(fmt.Sprintf("unknown text type %q", t.Ident)) } |
