summaryrefslogtreecommitdiff
path: root/tools/scmp_arch_detect.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-01-07 14:51:19 +0100
committerPaul Moore <paul@paul-moore.com>2020-02-23 10:27:58 -0500
commit5432e15521d5ce5a7d3f26bf78674cbaa9d73d1f (patch)
treef0bf4ab2fcb55620c15aae9f4c6169bea6d73285 /tools/scmp_arch_detect.c
parent0a4c0300ebcc982cf419a4f7382ffc28e4792d2a (diff)
downloadlibseccomp-5432e15521d5ce5a7d3f26bf78674cbaa9d73d1f.tar.gz
arch: Add RISC-V 64-bit support
Signed-off-by: Andreas Schwab <schwab@suse.de> [PM: minor macro shuffling in seccomp.h.in] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/scmp_arch_detect.c')
-rw-r--r--tools/scmp_arch_detect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/scmp_arch_detect.c b/tools/scmp_arch_detect.c
index ad43f2d..b844a68 100644
--- a/tools/scmp_arch_detect.c
+++ b/tools/scmp_arch_detect.c
@@ -120,6 +120,9 @@ int main(int argc, char *argv[])
case SCMP_ARCH_S390X:
printf("s390x\n");
break;
+ case SCMP_ARCH_RISCV64:
+ printf("riscv64\n");
+ break;
default:
printf("unknown\n");
}