From ad7f042a5c22180cc9c17af50e7c1475ad69d5cc Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Wed, 25 Nov 2020 15:35:06 +1100 Subject: pkg/host: fixup for GOARCH checking for PPC64 Other architectures check for targets.xxxx so do the same for PPC. This drops "pppc64" (which is big endian) for now as it has never been tested and this is unlikely to happen in the future. Signed-off-by: Alexey Kardashevskiy --- pkg/host/syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/host/syscalls_linux.go b/pkg/host/syscalls_linux.go index 90b57a94e..7764b063a 100644 --- a/pkg/host/syscalls_linux.go +++ b/pkg/host/syscalls_linux.go @@ -201,7 +201,7 @@ func isSyzKvmSetupCPUSupported(c *prog.Syscall, target *prog.Target, sandbox str return true, "" } case "syz_kvm_setup_cpu$ppc64": - if runtime.GOARCH == "ppc64le" || runtime.GOARCH == "ppc64" { + if runtime.GOARCH == targets.PPC64LE { return true, "" } } -- cgit mrf-deployment