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: