[Bug 46092] Multiple ARM64 apps want 'kernel32.GetSystemInfo' support for 'PROCESSOR_ARCHITECTURE_ARM64' ('Unknown processor architecture c')

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Nov 16 06:10:58 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=46092

--- Comment #3 from Anastasius Focht <focht at gmx.net> ---
Hello André,

--- quote ---
Main problem here is that I don't know expected values and can't guess.
For ARM we have PROCESSOR_ARM* defines, but I can't find those for
PROCESSOR_ARM64*
--- quote ---

indeed, it seems the Win10 SDK header 'winnt.h' doesn't list any ARMv8
architecture based processors. The level will be for sure 8 since it's derived
from 'CPU architecture'.

--- snip ---
$ cat /proc/cpuinfo
processor    : 0
BogoMIPS    : 125.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x1
CPU part    : 0xd07
CPU revision    : 0
...
$ setarch linux32 cat /proc/cpuinfo
processor    : 0
model name    : ARMv8 Processor rev 0 (v8l)
BogoMIPS    : 125.00
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x1
CPU part    : 0xd07
CPU revision    : 0
--- snip ---

It might take some time until someone has access to Win10 ARM64 machine to run
a test case. Anyway, that info might not be used at all, MS states for
'dwProcessorType':

https://docs.microsoft.com/en-us/windows/desktop/api/sysinfoapi/ns-sysinfoapi-_system_info

--- quote ---
dwProcessorType

An obsolete member that is retained for compatibility. Use the
wProcessorArchitecture, wProcessorLevel, and wProcessorRevision members to
determine the type of processor.
--- quote ---

Maybe we could just return zero like in PPC arch default case. Otherwise it
would be misleading to have this FIXME spam as the processor architecture is
actually known here.

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list