1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-02 21:53:18 +02:00

powerpc: Add AT_PLATFORM and AT_BASE_PLATFORM

Some PowerPC machines can operate in a mode that appears different
to a process than the actual hardware. AT_PLATFORM indicates the
supported instruction set and AT_BASE_PLATFORM indicates the
actual microarchitecture of the hardware.

Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
This commit is contained in:
Rashmica Gupta
2018-05-02 14:30:25 +10:00
committed by Rashmica Gupta
parent 1c8bf0ecd8
commit c45e32f812
8 changed files with 52 additions and 1 deletions

View File

@ -198,6 +198,8 @@ static void PrintFeatures(const Printer printer) {
PrintS(printer, "model", strings.model);
PrintS(printer, "machine", strings.machine);
PrintS(printer, "cpu", strings.cpu);
PrintS(printer, "instruction set", strings.type.platform);
PrintS(printer, "microarchitecture", strings.type.base_platform);
PrintFlags(printer, &info.features);
#endif
}