diff options
| author | Alexey Kardashevskiy <aik@linux.ibm.com> | 2021-07-14 15:12:39 +1000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-19 11:29:36 +0200 |
| commit | 4760a80fad88909b48c1b60dd8c6d7ba991a2416 (patch) | |
| tree | 192e5ac175c3cdbe6ae73ee6c3bd943db015c249 /executor/gen_linux_amd64.go | |
| parent | 40c360bea98928f9826762046ddeefad6405ca09 (diff) | |
executor: prepare code generator to allow other achitectures
At the moment only AMD64 is supported, change file names to emphasise
this.
Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
Diffstat (limited to 'executor/gen_linux_amd64.go')
| -rw-r--r-- | executor/gen_linux_amd64.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/executor/gen_linux_amd64.go b/executor/gen_linux_amd64.go new file mode 100644 index 000000000..dd68a198b --- /dev/null +++ b/executor/gen_linux_amd64.go @@ -0,0 +1,7 @@ +// Copyright 2017 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +// nolint: lll +//go:generate bash -c "gcc -DGOARCH_$GOARCH=1 kvm_gen.cc kvm_amd64.S -o kvm_gen && ./kvm_gen > kvm_amd64.S.h && rm ./kvm_gen" + +package executor |
