From 0cc699e75d9e8c48b81b566d06c06de0950258bf Mon Sep 17 00:00:00 2001 From: Arun Dhyani Date: Tue, 25 Feb 2025 19:38:30 +0530 Subject: [PATCH] fix: mips arch typo --- analyzer/opcode/opcode.go | 2 +- analyzer/syscall/asm_syscall.go | 2 +- profile/cannon/cannon-32.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analyzer/opcode/opcode.go b/analyzer/opcode/opcode.go index c120659..c263c53 100644 --- a/analyzer/opcode/opcode.go +++ b/analyzer/opcode/opcode.go @@ -63,7 +63,7 @@ func (op *opcode) buildCallGraph(path string) (asmparser.CallGraph, error) { // Select the correct parser based on architecture. switch op.profile.GOARCH { - case "mips32", "mips64": + case "mips", "mips64": callGraph, err = mips.NewParser().Parse(path) default: return nil, fmt.Errorf("unsupported GOARCH: %s", op.profile.GOARCH) diff --git a/analyzer/syscall/asm_syscall.go b/analyzer/syscall/asm_syscall.go index c4a1d4a..67cba5c 100644 --- a/analyzer/syscall/asm_syscall.go +++ b/analyzer/syscall/asm_syscall.go @@ -87,7 +87,7 @@ func (a *asmSyscallAnalyser) buildCallGraph(path string) (asmparser.CallGraph, e // Select the correct parser based on architecture. switch a.profile.GOARCH { - case "mips32", "mips64": + case "mips", "mips64": callGraph, err = mips.NewParser().Parse(path) default: return nil, fmt.Errorf("unsupported GOARCH: %s", a.profile.GOARCH) diff --git a/profile/cannon/cannon-32.yaml b/profile/cannon/cannon-32.yaml index 3261ea2..acb8cbc 100644 --- a/profile/cannon/cannon-32.yaml +++ b/profile/cannon/cannon-32.yaml @@ -1,6 +1,6 @@ vm: Cannon goos: linux -goarch: mips32 +goarch: mips ignored_functions: allowed_opcodes: