Skip to content

Revisit the logic in Architecture.cpp for X64 emulation of ARM64 devices. #666

Closed

Description

Description of the new feature/enhancement

Given the X64 emulation of ARM64 devices went publicly preview this week. We'd better add X64 to ApplicableArchitecturesVector for ARM64 devices.

Proposed technical implementation details (optional)

It should be a trivial change by adding an entry to ApplicableArchitecturesVector. However I don't know how to check if the system supports X64 emulation.

Activity

  1. added
    Issue-Feature
    on Dec 14, 2020
  2. ghost added
    Needs-Triage
    on Dec 14, 2020
  3. denelon commented on Dec 14, 2020

    @denelon
    Collaborator

    We will be looking at multi architecture support in #132

  4. JohnMcPMS commented on Jun 7, 2021

    @JohnMcPMS
    Member

    Detection of x64 support on ARM64 requires a new API.

    bool SupportsX64_OnlyCallOnARM64()
    {
      // TODO: Dynamically load GetMachineTypeAttributes function pointer
      MACHINE_ATTRIBUTES ma = 0;
      GetMachineTypeAttributes(IMAGE_FILE_MACHINE_AMD64, &ma);
      return ma & UserEnabled;
    }

    GetMachineTypeAttributes is a brand new API, and thus we will have to load it from wherever it lives (we should be able to GetProcAddress from the onecore umbrella) to support older OS versions.

  5. ghost added
    In-PR
    on Sep 8, 2021
  6. added a commit that references this issue on Sep 8, 2021
    4972fab
  7. ghost removed
    In-PR
    on Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions