Repository navigation
Add experimental x86-64-v2 CPU support for older PCs and Intel Macs #258
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
Open
DarthMDev
wants to merge
11
commits into
patchzyy:main
Choose a base branch
from
DarthMDev:cpu-compatibility-foundation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3f22229
runtime: add experimental x86-64-v2 profile
DarthMDev a2ecc0f
fix review findings in network and translator
DarthMDev 3c7a449
build: include mbedtls in macos compile audit
DarthMDev b66a316
Merge remote-tracking branch 'upstream/main' into cpu-compatibility-f…
DarthMDev 4bebb74
review fixes
DarthMDev 082c718
Merge branch 'main' into cpu-compatibility-foundation
DarthMDev 9c2ecb0
cmake: restore macOS deployment target floor before project()
DarthMDev 8e0ed7a
merge main
patchzyy 0d8ff51
fix: Preserve explicit package versions and gate v3 tests on host sup…
DarthMDev fcf8646
fix: Prevent TLS session reuse after failed writes
DarthMDev b88c5df
fix: Gate cross-compiled profile tests on emulator availability
DarthMDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Shared by the product build and the dependency-free platform test configuration. | ||
| get_filename_component(MKW_HOST_RUNTIME_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE) | ||
|
|
||
| # POSIX guest-fiber scheduling (runtime/src/host_context.cpp) needs a symmetric | ||
| # stackful-coroutine primitive to stand in for Win32 Fibers. libco's co_switch() transfers | ||
| # directly to any other created coroutine, matching SwitchToFiber's semantics exactly (unlike | ||
| # asymmetric resume/yield coroutine libraries, which would need every call site restructured). | ||
| # Vendored from upstream (higan-emu/libco @ e18e09d, 2019-10-16, ISC license; valgrind.h is | ||
| # separately BSD-style licensed, see third_party/libco/LICENSE). Windows keeps native Fibers; | ||
| # Apple Silicon uses the project's x18-safe AArch64 assembly backend, while Intel macOS uses | ||
| # libco's existing System V AMD64 backend. | ||
| if(MKW_PLATFORM_LINUX OR MKW_PLATFORM_MACOS_X86_64) | ||
| add_library(mkw_libco STATIC "${MKW_HOST_RUNTIME_DIR}/third_party/libco/libco.c") | ||
| add_library(mkw::libco ALIAS mkw_libco) | ||
| target_include_directories(mkw_libco PUBLIC "${MKW_HOST_RUNTIME_DIR}/third_party/libco") | ||
| set_target_properties(mkw_libco PROPERTIES UNITY_BUILD OFF) | ||
| endif() | ||
|
|
||
| # This deliberately small library contains host services that are safe to | ||
| # validate before guest memory and fiber work makes a full runtime build viable. | ||
| add_library(mkw_platform STATIC "${MKW_HOST_RUNTIME_DIR}/src/platform/host_platform.cpp") | ||
| target_include_directories(mkw_platform PUBLIC "${MKW_HOST_RUNTIME_DIR}/include") | ||
| target_compile_features(mkw_platform PUBLIC cxx_std_17) | ||
| set_target_properties(mkw_platform PROPERTIES UNITY_BUILD OFF) | ||
|
|
||
| if(MKW_PLATFORM_WINDOWS) | ||
| target_compile_definitions(mkw_platform PRIVATE NOMINMAX) | ||
| target_link_libraries(mkw_platform PUBLIC shell32 ole32 uuid) | ||
| endif() |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.