Added submodule contents into tree
This commit is contained in:
158
externals/dynarmic/.github/workflows/aarch64.yml
vendored
Normal file
158
externals/dynarmic/.github/workflows/aarch64.yml
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
name: AArch64
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build_linux:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ linux, android ]
|
||||
fail-fast: false
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Install build dependencies
|
||||
run: >
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install
|
||||
gcc-10-aarch64-linux-gnu
|
||||
g++-10-aarch64-linux-gnu
|
||||
ninja-build
|
||||
qemu-user
|
||||
|
||||
- name: Checkout dynarmic repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Ccache
|
||||
if: matrix.platform == 'linux'
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
|
||||
- name: Checkout ext-boost repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: MerryMage/ext-boost
|
||||
path: externals/ext-boost
|
||||
|
||||
- name: Configure CMake for AArch64 (Linux)
|
||||
if: matrix.platform == 'linux'
|
||||
env:
|
||||
CC: aarch64-linux-gnu-gcc-10
|
||||
CXX: aarch64-linux-gnu-g++-10
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build-arm64
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||
-DDYNARMIC_USE_LLVM=0
|
||||
-G Ninja
|
||||
|
||||
- name: Configure CMake for AArch64 (Android)
|
||||
if: matrix.platform == 'android'
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build-arm64
|
||||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DANDROID_ABI=arm64-v8a
|
||||
-DANDROID_PLATFORM=29
|
||||
-DBoost_INCLUDE_DIR=${{github.workspace}}/externals/ext-boost
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||
-DDYNARMIC_USE_LLVM=0
|
||||
-G Ninja
|
||||
|
||||
- name: Build AArch64
|
||||
working-directory: ${{github.workspace}}/build-arm64
|
||||
run: cmake --build . --config Release
|
||||
|
||||
- name: Configure CMake for x86_64
|
||||
if: matrix.platform == 'linux'
|
||||
env:
|
||||
CC: gcc-10
|
||||
CXX: g++-10
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build-x64
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||
-DDYNARMIC_USE_LLVM=0
|
||||
-G Ninja
|
||||
|
||||
- name: Build x86_64
|
||||
if: matrix.platform == 'linux'
|
||||
working-directory: ${{github.workspace}}/build-x64
|
||||
run: cmake --build . --config Release
|
||||
|
||||
- name: Basic tests
|
||||
if: matrix.platform == 'linux'
|
||||
working-directory: ${{github.workspace}}
|
||||
run: qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_tests -d yes
|
||||
|
||||
- name: Test against x86_64 implementation (A32, thumb)
|
||||
if: matrix.platform == 'linux'
|
||||
working-directory: ${{github.workspace}}
|
||||
run: |
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator thumb 42 1 100000) <(./build-x64/tests/dynarmic_test_generator thumb 42 1 100000)
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator thumb 42 10 10000) <(./build-x64/tests/dynarmic_test_generator thumb 42 10 10000)
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator thumb 42 100 1000) <(./build-x64/tests/dynarmic_test_generator thumb 42 100 1000)
|
||||
|
||||
- name: Test against x86_64 implementation (A32, arm)
|
||||
if: matrix.platform == 'linux'
|
||||
working-directory: ${{github.workspace}}
|
||||
run: |
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator arm 42 1 100000) <(./build-x64/tests/dynarmic_test_generator arm 42 1 100000)
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator arm 42 10 10000) <(./build-x64/tests/dynarmic_test_generator arm 42 10 10000)
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator arm 42 100 1000) <(./build-x64/tests/dynarmic_test_generator arm 42 100 1000)
|
||||
|
||||
- name: Test against x86_64 implementation (A64)
|
||||
if: matrix.platform == 'linux'
|
||||
working-directory: ${{github.workspace}}
|
||||
run: |
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator a64 42 1 100000) <(./build-x64/tests/dynarmic_test_generator a64 42 1 100000)
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator a64 42 10 10000) <(./build-x64/tests/dynarmic_test_generator a64 42 10 10000)
|
||||
diff <(qemu-aarch64 -L /usr/aarch64-linux-gnu ./build-arm64/tests/dynarmic_test_generator a64 42 100 1000) <(./build-x64/tests/dynarmic_test_generator a64 42 100 1000)
|
||||
|
||||
build_windows:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout dynarmic repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout ext-boost repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: MerryMage/ext-boost
|
||||
path: externals/ext-boost
|
||||
|
||||
- name: Setup msvc-arm64 environment
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: amd64_arm64
|
||||
|
||||
- name: Configure CMake for AArch64 (Windows)
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build-arm64
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DDYNARMIC_WARNINGS_AS_ERRORS=0
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||
-DDYNARMIC_USE_LLVM=0
|
||||
-G Ninja
|
||||
|
||||
- name: Build AArch64
|
||||
working-directory: ${{github.workspace}}/build-arm64
|
||||
run: cmake --build . --config Release
|
||||
18
externals/dynarmic/.github/workflows/clang-format.yml
vendored
Normal file
18
externals/dynarmic/.github/workflows/clang-format.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: clang-format
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
clang-format:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout dynarmic repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: DoozyX/clang-format-lint-action@v0.15
|
||||
with:
|
||||
source: 'src tests'
|
||||
clangFormatVersion: 15
|
||||
46
externals/dynarmic/.github/workflows/multiarch.yml
vendored
Normal file
46
externals/dynarmic/.github/workflows/multiarch.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: multiarch
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
brew install ninja
|
||||
echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Checkout dynarmic repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout ext-boost repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: MerryMage/ext-boost
|
||||
path: externals/ext-boost
|
||||
|
||||
- name: Configure CMake
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
|
||||
-G Ninja
|
||||
|
||||
- name: Build
|
||||
working-directory: ${{github.workspace}}/build
|
||||
run: cmake --build . --config Release
|
||||
|
||||
- name: Test
|
||||
working-directory: ${{github.workspace}}/build
|
||||
run: ctest --extra-verbose -C ${{env.BUILD_TYPE}}
|
||||
63
externals/dynarmic/.github/workflows/riscv64.yml
vendored
Normal file
63
externals/dynarmic/.github/workflows/riscv64.yml
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
name: RISCV64
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build_linux:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ linux ]
|
||||
fail-fast: false
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Install build dependencies
|
||||
run: >
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install
|
||||
gcc-10-riscv64-linux-gnu
|
||||
g++-10-riscv64-linux-gnu
|
||||
ninja-build
|
||||
qemu-user
|
||||
|
||||
- name: Checkout dynarmic repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Ccache
|
||||
if: matrix.platform == 'linux'
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
|
||||
- name: Checkout ext-boost repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: MerryMage/ext-boost
|
||||
path: externals/ext-boost
|
||||
|
||||
- name: Configure CMake for RISCV64 (Linux)
|
||||
if: matrix.platform == 'linux'
|
||||
env:
|
||||
CC: riscv64-linux-gnu-gcc-10
|
||||
CXX: riscv64-linux-gnu-g++-10
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build-riscv64
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=0
|
||||
-DDYNARMIC_USE_LLVM=0
|
||||
-DDYNARMIC_FRONTENDS=A32
|
||||
-G Ninja
|
||||
|
||||
- name: Build RISCV64
|
||||
working-directory: ${{github.workspace}}/build-riscv64
|
||||
run: cmake --build . --config Release
|
||||
|
||||
# - name: Basic tests
|
||||
# if: matrix.platform == 'linux'
|
||||
# working-directory: ${{github.workspace}}
|
||||
# run: qemu-riscv64 -L /usr/riscv64-linux-gnu ./build-riscv64/tests/dynarmic_tests -d yes
|
||||
102
externals/dynarmic/.github/workflows/x86-64.yml
vendored
Normal file
102
externals/dynarmic/.github/workflows/x86-64.yml
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
name: x86-64
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ windows-latest, ubuntu-latest, macos-latest ]
|
||||
cpu_detection: [ 0, 1 ]
|
||||
fail-fast: false
|
||||
|
||||
runs-on: ${{matrix.os}}
|
||||
|
||||
steps:
|
||||
|
||||
- name: Install build dependencies
|
||||
if: ${{matrix.os == 'ubuntu-latest'}}
|
||||
run: sudo apt-get install llvm ninja-build
|
||||
|
||||
- name: Install build dependencies
|
||||
if: ${{matrix.os == 'macos-latest'}}
|
||||
run: |
|
||||
brew install llvm ninja
|
||||
echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Checkout dynarmic repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout ext-boost repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: MerryMage/ext-boost
|
||||
path: externals/ext-boost
|
||||
|
||||
- name: Checkout unicorn repo
|
||||
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: MerryMage/unicorn
|
||||
path: externals/unicorn
|
||||
|
||||
- name: Build unicorn
|
||||
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
|
||||
working-directory: externals/unicorn
|
||||
run: UNICORN_ARCHS=aarch64,arm ./make.sh
|
||||
|
||||
- name: Configure CMake
|
||||
if: ${{matrix.os == 'ubuntu-latest'}}
|
||||
env:
|
||||
CC: gcc-10
|
||||
CXX: g++-10
|
||||
CXXFLAGS: -Wp,-D_GLIBCXX_ASSERTIONS
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=1
|
||||
-DDYNARMIC_USE_LLVM=1
|
||||
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
|
||||
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
|
||||
-G Ninja
|
||||
|
||||
- name: Configure CMake
|
||||
if: ${{matrix.os == 'macos-latest'}}
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
||||
-DDYNARMIC_TESTS_USE_UNICORN=1
|
||||
-DDYNARMIC_USE_LLVM=1
|
||||
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
|
||||
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
|
||||
-G Ninja
|
||||
|
||||
- name: Configure CMake
|
||||
if: ${{matrix.os == 'windows-latest'}}
|
||||
run: >
|
||||
cmake
|
||||
-B ${{github.workspace}}/build
|
||||
-DBOOST_INCLUDEDIR=${{github.workspace}}/externals/ext-boost
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DDYNARMIC_ENABLE_CPU_FEATURE_DETECTION=${{matrix.cpu_detection}}
|
||||
-G "Visual Studio 17 2022"
|
||||
-A x64
|
||||
|
||||
- name: Build
|
||||
working-directory: ${{github.workspace}}/build
|
||||
run: cmake --build . --config Release
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
DYLD_FALLBACK_LIBRARY_PATH: ${{github.workspace}}/externals/unicorn
|
||||
working-directory: ${{github.workspace}}/build
|
||||
run: ctest --extra-verbose -C ${{env.BUILD_TYPE}}
|
||||
Reference in New Issue
Block a user