Skip to content

Commit ee1bc68

Browse files
authored
Merge v7.0.0 (#108)
* Merge upstream v7.0.0 * Convert w64 build to MSYS2 (Cygwin has no sufficiently new glib2.0) - It is now fully standalone.
1 parent afc3698 commit ee1bc68

File tree

4,480 files changed

+360680
-217215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,480 files changed

+360680
-217215
lines changed

.cirrus.yml

+2-58
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,6 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
33

4-
freebsd_12_task:
5-
freebsd_instance:
6-
image_family: freebsd-12-2
7-
cpu: 8
8-
memory: 8G
9-
install_script:
10-
- ASSUME_ALWAYS_YES=yes pkg bootstrap -f ;
11-
- pkg install -y bash curl cyrus-sasl git glib gmake gnutls gsed
12-
nettle perl5 pixman pkgconf png usbredir ninja
13-
script:
14-
- mkdir build
15-
- cd build
16-
# TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed
17-
# See: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
18-
- ../configure --enable-werror --disable-gnutls
19-
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
20-
- gmake -j$(sysctl -n hw.ncpu)
21-
- gmake -j$(sysctl -n hw.ncpu) check V=1
22-
23-
macos_task:
24-
osx_instance:
25-
image: catalina-base
26-
install_script:
27-
- brew install pkg-config python gnu-sed glib pixman make sdl2 bash ninja
28-
script:
29-
- mkdir build
30-
- cd build
31-
- ../configure --python=/usr/local/bin/python3 --enable-werror
32-
--extra-cflags='-Wno-error=deprecated-declarations'
33-
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
34-
- gmake -j$(sysctl -n hw.ncpu)
35-
- gmake check-unit V=1
36-
- gmake check-block V=1
37-
- gmake check-qapi-schema V=1
38-
- gmake check-softfloat V=1
39-
- gmake check-qtest-x86_64 V=1
40-
41-
macos_xcode_task:
42-
osx_instance:
43-
# this is an alias for the latest Xcode
44-
image: catalina-xcode
45-
install_script:
46-
- brew install pkg-config gnu-sed glib pixman make sdl2 bash ninja
47-
script:
48-
- mkdir build
49-
- cd build
50-
- ../configure --extra-cflags='-Wno-error=deprecated-declarations' --enable-modules
51-
--enable-werror --cc=clang || { cat config.log meson-logs/meson-log.txt; exit 1; }
52-
- gmake -j$(sysctl -n hw.ncpu)
53-
- gmake check-unit V=1
54-
- gmake check-block V=1
55-
- gmake check-qapi-schema V=1
56-
- gmake check-softfloat V=1
57-
- gmake check-qtest-x86_64 V=1
58-
594
windows_msys2_task:
605
timeout_in: 90m
616
windows_container:
@@ -67,7 +12,7 @@ windows_msys2_task:
6712
CIRRUS_SHELL: powershell
6813
MSYS: winsymlinks:nativestrict
6914
MSYSTEM: MINGW64
70-
MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2021-01-05/msys2-base-x86_64-20210105.sfx.exe
15+
MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2021-04-19/msys2-base-x86_64-20210419.sfx.exe
7116
MSYS2_FINGERPRINT: 0
7217
MSYS2_PACKAGES: "
7318
diffutils git grep make pkg-config sed
@@ -87,7 +32,6 @@ windows_msys2_task:
8732
mingw-w64-x86_64-libgcrypt
8833
mingw-w64-x86_64-libpng
8934
mingw-w64-x86_64-libssh
90-
mingw-w64-x86_64-libxml2
9135
mingw-w64-x86_64-snappy
9236
mingw-w64-x86_64-libusb
9337
mingw-w64-x86_64-usbredir
@@ -130,7 +74,7 @@ windows_msys2_task:
13074
taskkill /F /FI "MODULES eq msys-2.0.dll"
13175
tasklist
13276
C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true"
133-
C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Suu --overwrite=*"
77+
C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syuu --overwrite=*"
13478
Write-Output "Core install time taken: $((Get-Date).Subtract($start_time))"
13579
$start_time = Get-Date
13680

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.c.inc diff=c
22
*.h.inc diff=c
3+
*.m diff=objc
34
*.py diff=python

.github/workflows/build.yml

+29-49
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
build_linux:
1919
# The type of runner that the job will run on
2020
runs-on: ubuntu-latest
21-
if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
22-
# Steps represent a sequence of tasks that will be executed as part of the job
21+
# if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
22+
# # Steps represent a sequence of tasks that will be executed as part of the job
2323
steps:
2424
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2525
- name: Checkout ${{ github.event.pull_request.head.ref }}
@@ -88,7 +88,7 @@ jobs:
8888
cd ${{ runner.workspace }}/MINI404/build
8989
mv buddy-softmmu Mini404-dev-linux
9090
mv assets Mini404-dev-linux
91-
mv pc-bios Mini404-dev-linux
91+
mkdir Mini404-dev-linux/pc-bios && mv pc-bios/keymaps Mini404-dev-linux/pc-bios/
9292
tar -jhcvf Mini404-dev-linux.tar.bz2 Mini404-dev-linux
9393
- name: Upload artifact
9494
if: ${{ !github.event.pull_request }}
@@ -100,10 +100,10 @@ jobs:
100100
build_macos:
101101
# The type of runner that the job will run on
102102
runs-on: macos-latest
103-
if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
104-
# Steps represent a sequence of tasks that will be executed as part of the job
103+
# if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
104+
# # Steps represent a sequence of tasks that will be executed as part of the job
105105
steps:
106-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
106+
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
107107
- name: Checkout ${{ github.event.pull_request.head.ref }}
108108
uses: actions/[email protected]
109109
if: ${{ github.event.pull_request }}
@@ -134,6 +134,9 @@ jobs:
134134
run: |
135135
cd ${{ runner.workspace }}/MINI404/build
136136
mv buddy-softmmu Mini404-dev-macos
137+
mv assets Mini404-dev-macos
138+
mkdir Mini404-dev-macos/pc-bios
139+
mv pc-bios/keymaps Mini404-dev-macos/pc-bios/
137140
tar -jhcvf Mini404-dev-macos.tar.bz2 Mini404-dev-macos
138141
139142
- name: Upload artifact
@@ -143,32 +146,16 @@ jobs:
143146
name: Binaries
144147
path: ${{ runner.workspace }}/MINI404/build/Mini404-dev-macos.tar.bz2
145148

146-
build_cygwin:
149+
build_msys:
147150
# The type of runner that the job will run on
148-
runs-on: windows-2019
151+
runs-on: windows-latest
149152
if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
150153
steps:
151-
- uses: actions/cache@v1
152-
with:
153-
path: C:\tools\chococache
154-
key: ${{ runner.os }}-cygwin-${{ github.sha }}
155-
restore-keys: |
156-
${{ runner.os }}-cygwin-
157-
- name: Cygwin package cache
158-
uses: actions/cache@v1
159-
with:
160-
path: C:\tools\cygcache
161-
key: ${{ runner.os }}-cygwinpkgs-1_1
162-
restore-keys: |
163-
${{ runner.os }}-cygwinpkgs-
164-
- name: Install cygwin
165-
run: |
166-
choco config set cacheLocation C:\tools\chococache
167-
choco install --no-progress cygwin
168-
- name: Install cygwin dependencies
169-
run: |
170-
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -l C:/tools/cygcache -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P "mingw64-x86_64-gcc-g++,mingw64-x86_64-glew,mingw64-x86_64-freeglut,mingw64-x86_64-curl,mingw64-x86_64-glib-2.0,mingw64-x86_64-gtk3,mingw64-x86_64-openssl,mingw64-x86_64-libepoxy,mingw64-x86_64-pixman,mingw64-x86_64-pkg-config,mingw64-x86_64-libusb1.0,mingw64-x86_64-usbredir,python3-setuptools,git,gcc-core,make,zip,ninja"
171-
shell: cmd
154+
- name: Install MSYS2
155+
uses: msys2/setup-msys2@v2
156+
with:
157+
msystem: MINGW64
158+
install: make git zip mingw-w64-x86_64-diffutils diffutils python mingw-w64-x86_64-ninja mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk3 mingw-w64-x86_64-freeglut mingw-w64-x86_64-glew mingw-w64-x86_64-libusb mingw-w64-x86_64-SDL2 mingw-w64-x86_64-pixman mingw-w64-x86_64-glib2 python-setuptools mingw-w64-x86_64-make mingw-w64-x86_64-curl mingw-w64-x86_64-libjxl mingw-w64-x86_64-SDL2_image
172159

173160
- name: Fix CRLF Checkout
174161
run: git config --global core.autocrlf false
@@ -193,40 +180,33 @@ jobs:
193180
# recognize the `--no-pie` argument... not that it matters because we don't need to build the ROMs here.
194181
- name: Configure build
195182
run: |
196-
cd MINI404
197183
git submodule update --init capstone dtc meson slirp ui/keycodemapdb tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloat-3
198184
mkdir build
199185
cd build
200-
set PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin
201-
bash.exe -c "../configure --with-git-submodules=ignore --cross-prefix=x86_64-w64-mingw32- --target-list=buddy-softmmu --enable-gtk --enable-libusb"
202-
bash.exe -c "sed -i 's/LDFLAGS_NOPIE=-no-pie/LDFLAGS_NOPIE=/g' config-host.mak"
203-
shell: cmd
186+
../configure --with-git-submodules=ignore --target-list=buddy-softmmu --enable-gtk --enable-libusb --disable-werror
187+
shell: msys2 {0}
204188

205189
- name: Build
206190
run: |
207-
cd ${{runner.workspace}}\MINI404\build
208-
pwd
209-
set PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin
210-
bash.exe -c "make -j3"
211-
shell: cmd
191+
cd build
192+
ninja
193+
shell: msys2 {0}
212194
- name: Assemble artifacts and libraries
213-
if: ${{ !github.event.pull_request }}
195+
# if: ${{ !github.event.pull_request }}
214196
run: |
215-
cd ${{ runner.workspace }}/MINI404/build
197+
cd build
216198
mkdir Mini404-dev-w64
217-
mv qemu-system-buddy.exe Mini404-dev-w64
199+
mv qemu-*.exe Mini404-dev-w64
218200
mv assets Mini404-dev-w64
219201
cd Mini404-dev-w64
220-
set PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin
221-
bash.exe -c "mkdir pc-bios && echo \"Placeholder. DO NOT DELETE THIS DIRECTORY, IT MUST EXIST OR QEMU WILL HANG ON BOOT\" > pc-bios/README.txt"
222-
bash.exe -c "for i in `ldd qemu-system-buddy.exe | grep \"not found\" | cut -f2 | cut -d\" \" -f1 | sort | uniq`; do echo Copying $i; cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/$i .; done"
223-
bash.exe -c "while `ldd *.dll | grep -q \"not found\"`; do for i in `ldd *.dll | grep \"not found\" | cut -f2 | cut -d\" \" -f1 | sort | uniq`; do echo Copying $i; cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/$i .; done; sleep 2; done"
202+
mkdir pc-bios && mv ../pc-bios/keymaps pc-bios/
203+
for i in `cat ../../.github/workflows/dll-list.txt`; do echo "Copying $i"; cp /mingw64/bin/$i .; done;
224204
cd ..
225205
zip -r Mini404-dev-w64.zip Mini404-dev-w64
226-
shell: cmd
206+
shell: msys2 {0}
227207

228208
- name: Upload Cygwin artifact
229-
if: ${{ !github.event.pull_request }}
209+
# if: ${{ !github.event.pull_request }}
230210
uses: actions/upload-artifact@v2
231211
with:
232212
name: Binaries
@@ -235,7 +215,7 @@ jobs:
235215
Publish:
236216
runs-on: ubuntu-latest
237217
if: ${{ !github.event.pull_request }}
238-
needs: [build_linux, build_cygwin, build_macos]
218+
needs: [build_linux, build_msys, build_macos]
239219
steps:
240220
- name: Retrieve platform binaries
241221
uses: actions/download-artifact@v2

.github/workflows/dll-list.txt

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
glew32.dll
2+
libatk-1.0-0.dll
3+
libbrotlicommon.dll
4+
libbrotlidec.dll
5+
libbrotlienc.dll
6+
libbz2-1.dll
7+
libcairo-2.dll
8+
libcairo-gobject-2.dll
9+
libcrypto-1_1-x64.dll
10+
libcurl-4.dll
11+
libdatrie-1.dll
12+
libdeflate.dll
13+
libepoxy-0.dll
14+
libexpat-1.dll
15+
libffi-7.dll
16+
libfontconfig-1.dll
17+
libfreeglut.dll
18+
libfreetype-6.dll
19+
libfribidi-0.dll
20+
libgcc_s_seh-1.dll
21+
libgdk-3-0.dll
22+
libgdk_pixbuf-2.0-0.dll
23+
libgio-2.0-0.dll
24+
libglib-2.0-0.dll
25+
libgmodule-2.0-0.dll
26+
libgobject-2.0-0.dll
27+
libgraphite2.dll
28+
libgtk-3-0.dll
29+
libharfbuzz-0.dll
30+
libharfbuzz-gobject-0.dll
31+
libharfbuzz-icu-0.dll
32+
libharfbuzz-subset-0.dll
33+
libiconv-2.dll
34+
libidn2-0.dll
35+
libintl-8.dll
36+
libjbig-0.dll
37+
libjpeg-8.dll
38+
libjxl.dll
39+
libLerc.dll
40+
liblzma-5.dll
41+
liblzo2-2.dll
42+
libncursesw6.dll
43+
libnghttp2-14.dll
44+
libpango-1.0-0.dll
45+
libpangocairo-1.0-0.dll
46+
libpangoft2-1.0-0.dll
47+
libpangowin32-1.0-0.dll
48+
libpcre-1.dll
49+
libpixman-1-0.dll
50+
libpng16-16.dll
51+
libpsl-5.dll
52+
libssh2-1.dll
53+
libssl-1_1-x64.dll
54+
libssp-0.dll
55+
libstdc++-6.dll
56+
libthai-0.dll
57+
libtiff-5.dll
58+
libunistring-2.dll
59+
libusb-1.0.dll
60+
libwebp-7.dll
61+
libwinpthread-1.dll
62+
libzstd.dll
63+
SDL2.dll
64+
SDL2_image.dll
65+
zlib1.dll

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ GTAGS
1414
*~
1515
*.ast_raw
1616
*.depend_raw
17+
*.swp
18+
*.patch
19+
*.gcov

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
[submodule "roms/vbootrom"]
6565
path = roms/vbootrom
6666
url = https://gitlab.com/qemu-project/vbootrom.git
67+
[submodule "tests/lcitool/libvirt-ci"]
68+
path = tests/lcitool/libvirt-ci
69+
url = https://gitlab.com/libvirt/libvirt-ci.git
6770
[submodule "hw/arm/prusa/3rdParty/shmemq404"]
6871
path = hw/arm/prusa/3rdParty/shmemq404
6972
url = https://github.com/vintagepc/shmemq404.git

.mailmap

+19-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ Paul Brook <[email protected]> pbrook <pbrook@c046a42c-6fe2-441c-8c8c-714662
2727
Thiemo Seufer <[email protected]> ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
2828
malc <[email protected]> malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
2929

30+
# Corrupted Author fields
31+
32+
Andreas Färber <[email protected]> Andreas Färber <andreas.faerber>
33+
Jason Wang <[email protected]> Jason Wang <jasowang>
34+
35+
36+
37+
3038
# There is also a:
3139
# (no author) <(no author)@c046a42c-6fe2-441c-8c8c-71466251a162>
3240
# for the cvs2svn initialization commit e63c3dc74bf.
@@ -46,8 +54,10 @@ Aleksandar Rikalo <[email protected]> <[email protected]>
4654
4755
4856
Anthony Liguori <[email protected]> Anthony Liguori <[email protected]>
57+
Christian Borntraeger <[email protected]> <[email protected]>
4958
50-
59+
60+
5161
5262
5363
@@ -58,13 +68,16 @@ Paul Burton <[email protected]> <[email protected]>
5868
5969
6070
71+
Philippe Mathieu-Daudé <[email protected]> <[email protected]>
6172
6273
6374

6475
# Also list preferred name forms where people have changed their
6576
# git author config, or had utf8/latin1 encoding issues.
6677
Aaron Lindsay <[email protected]>
78+
Aaron Larson <[email protected]>
6779
Alexey Gerasimenko <[email protected]>
80+
Alex Chen <[email protected]>
6881
Alex Ivanov <[email protected]>
6982
Andreas Färber <[email protected]>
7083
Bandan Das <[email protected]>
@@ -95,8 +108,11 @@ Gautham R. Shenoy <[email protected]>
95108
Gautham R. Shenoy <[email protected]>
96109
Gonglei (Arei) <[email protected]>
97110
Guang Wang <[email protected]>
111+
Haibin Zhang <[email protected]>
98112
Hailiang Zhang <[email protected]>
113+
99114
Hervé Poussineau <[email protected]>
115+
Hyman Huang <[email protected]>
100116
Jakub Jermář <[email protected]>
101117
Jakub Jermář <[email protected]>
102118
Jean-Christophe Dubois <[email protected]>
@@ -130,9 +146,11 @@ Nicholas Thomas <[email protected]>
130146
Nikunj A Dadhania <[email protected]>
131147
Orit Wasserman <[email protected]>
132148
Paolo Bonzini <[email protected]>
149+
Pan Nengyuan <[email protected]>
133150
Pavel Dovgaluk <[email protected]>
134151
Pavel Dovgaluk <[email protected]>
135152
Pavel Dovgaluk <[email protected]>
153+
Peter Chubb <[email protected]>
136154
Peter Crosthwaite <[email protected]>
137155
Peter Crosthwaite <[email protected]>
138156
Peter Crosthwaite <[email protected]>

0 commit comments

Comments
 (0)