Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Fix build warning in debug build #4

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@ on:
pull_request:

jobs:
build_aarch64_softmmu_debug_linux:
runs-on: ubuntu-20.04
container:
image: ubuntu:focal
steps:
- name: Install build dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build build-essential

- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Build qemu
run: |
mkdir build
cd build
../configure --enable-debug --target-list=aarch64-softmmu --disable-capstone --disable-slirp
make -j$(nproc)

- name: Install qemu
run: |
cd build
make DESTDIR=$GITHUB_WORKSPACE/bin/ install

- name: Publish binaries
uses: actions/upload-artifact@v2
with:
name: aarch64_softmmu_linux_debug
path: ${{ github.workspace }}/bin/

build_aarch64_softmmu_linux:
runs-on: ubuntu-20.04
container:
Expand Down
2 changes: 1 addition & 1 deletion target/arm/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -13269,7 +13269,7 @@ static inline void assert_hflags_rebuild_correctly(CPUARMState *env)
uint64_t env_flags_rebuilt = rebuild_hflags_internal(env);

if (unlikely(env_flags_current != env_flags_rebuilt)) {
fprintf(stderr, "TCG hflags mismatch (current:0x%16llx rebuilt:0x%16llx)\n",
fprintf(stderr, "TCG hflags mismatch (current:0x" TARGET_FMT_plx " rebuilt:0x" TARGET_FMT_plx ")\n",
env_flags_current, env_flags_rebuilt);
abort();
}
Expand Down