Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89704

QSysInfo::currentCpuArchitecture() is incorrect on ARM64 Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2, 6.0.0
    • Core: Other
    • None
    • Surface Pro X
    • Windows

    Description

      When using an x86 application running under emulation on Windows on ARM, QSysInfo::currentCpuArchitecture() doesn't return "arm64" as it should.

      This is (partially) because GetNativeSystemInfo(), which is used to determine the CPU architecture, doesn't actually return the real native architecture details on ARM64. This is documented in the MSDN page for GetNativeSystemInfo().

      In order to get accurate information about the native architecture of ARM systems, you must use the newer IsWow64Process2() which returns accurate results for non-Intel architectures.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            cgutman Cameron Gutman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes