Skip to content

Commit

Permalink
fix cpu vendor, swapping ecx/edx registers.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 19, 2022
1 parent 9c5ba84 commit 9d09bbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/Core/CpuID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ namespace spades {
{
auto ar = cpuid(0);
char buf[13];
buf[12] = 0;
maxStdLevel = ar[0];
memcpy(buf, ar.data() + 1, 12);
((uint32_t *)buf)[0] = ar[1];
((uint32_t *)buf)[1] = ar[3];
((uint32_t *)buf)[2] = ar[2];
buf[12] = 0;
vendor = buf;
}
{
Expand Down

0 comments on commit 9d09bbf

Please sign in to comment.