Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Zen/+ APU determined to be znver1? #131

Closed
Umio-Yasuno opened this issue Feb 15, 2020 · 0 comments
Closed

Is Zen/+ APU determined to be znver1? #131

Umio-Yasuno opened this issue Feb 15, 2020 · 0 comments

Comments

@Umio-Yasuno
Copy link

Zen/+ APU x86 models are 0x11. 0x18.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/k10temp.c#n587

case 0x11: /* Zen APU */
case 0x18: /* Zen+ APU */

However, 0x0f or less is used for znver1 judgment.
https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/builtins/cpu_model.c#L478

    if (Model <= 0x0f) {
      *Subtype = AMDFAM17H_ZNVER1;
      break; // "znver1"; 00h-0Fh: Zen1
    }

Is Zen/+ APU determined to be znver1?
As far as I know, GCC uses 0x1f or less.
https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/i386/cpuinfo.c#L109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant