Skip to content

Commit

Permalink
native/cpu/x86: Add support for CPUID EAX=80000000h (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Oct 6, 2020
1 parent ca50424 commit 2152023
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 2152023

Please sign in to comment.