Skip to content

Commit

Permalink
Merge branch 'master' into capstone-5-dev
Browse files Browse the repository at this point in the history
* master:
  native/cpu/x86: Add support for CPUID EAX=80000000h (#1811)
  • Loading branch information
ekilmer committed Oct 24, 2020
2 parents 3e646f7 + 2152023 commit 9405a92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manticore/native/cpu/x86.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,10 @@ def CPUID(cpu):
0x0: (0x00000000, 0x00000000, 0x00000000, 0x00000000),
0x1: (0x00000000, 0x00000000, 0x00000000, 0x00000000),
},
# CPUID with EAX=80000000h returns the highest supported extended function
# query in EAX. We don't currently support any other than 80000000h itself,
# so just return it back.
0x80000000: (0x80000000, 0x00000000, 0x00000000, 0x00000000),
}

if cpu.EAX not in conf:
Expand Down

0 comments on commit 9405a92

Please sign in to comment.