aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz/ifuzz.go
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-04-16 15:11:22 +0200
committerAlexander Potapenko <glider@google.com>2024-04-24 14:58:52 +0000
commita604cf376325b5f4d5ead8c2ca50da91330c72c8 (patch)
tree982e018b38bca2d41adf53df3a8b579c8aed57a6 /pkg/ifuzz/ifuzz.go
parent21339d7b9986698282dce93709157dc36907fbf8 (diff)
pkg/ifuzz/arm64: add arm64 support
This patch adds instruction generator for ARM64 based on the descriptions provided as part of Go's arm64asm package. It also implements support for pseudo-instructions for calling ARM64 hypercalls.
Diffstat (limited to 'pkg/ifuzz/ifuzz.go')
-rw-r--r--pkg/ifuzz/ifuzz.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/ifuzz/ifuzz.go b/pkg/ifuzz/ifuzz.go
index 01137b6ea..d33717d5d 100644
--- a/pkg/ifuzz/ifuzz.go
+++ b/pkg/ifuzz/ifuzz.go
@@ -6,6 +6,7 @@ package ifuzz
import (
"math/rand"
+ _ "github.com/google/syzkaller/pkg/ifuzz/arm64/generated" // pull in generated instruction descriptions
"github.com/google/syzkaller/pkg/ifuzz/iset"
_ "github.com/google/syzkaller/pkg/ifuzz/powerpc/generated" // pull in generated instruction descriptions
_ "github.com/google/syzkaller/pkg/ifuzz/x86/generated" // pull in generated instruction descriptions
@@ -20,6 +21,7 @@ type (
const (
ArchX86 = iset.ArchX86
ArchPowerPC = iset.ArchPowerPC
+ ArchArm64 = iset.ArchArm64
ModeLong64 = iset.ModeLong64
ModeProt32 = iset.ModeProt32
ModeProt16 = iset.ModeProt16