Skip to content

Commit

Permalink
elf: fix mips64 cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyg committed Apr 14, 2021
1 parent 234a8cd commit 29c02e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metasm/exe_format/elf_decode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ def cpu_from_headers
case @header.machine
when 'X86_64'; X86_64.new
when '386'; Ia32.new
when 'MIPS'; (@header.flags.include?('32BITMODE') ? MIPS64 : MIPS).new(@endianness)
when 'MIPS'; (bitsize == 64 ? MIPS64 : MIPS).new(@endianness)
when 'PPC'; PPC.new
when 'ARM'; ARM.new
when 'AARCH64'; AArch64.new
Expand Down

0 comments on commit 29c02e3

Please sign in to comment.