diff options
| author | Alexey Kardashevskiy <aik@linux.ibm.com> | 2020-11-25 15:35:06 +1100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-19 11:29:36 +0200 |
| commit | ad7f042a5c22180cc9c17af50e7c1475ad69d5cc (patch) | |
| tree | bbf49e88b0e6b8309f2edab6e6e72d41986c30c4 /pkg | |
| parent | d765911864ee478474a53f51565c2003ae7e3179 (diff) | |
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 <aik@linux.ibm.com>
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/host/syscalls_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, "" } } |
