Skip to content

Commit 133462d

Browse files
committed
hostools: update qemu to 9.2.3
Update qemu to 9.2.3 Signed-off-by: Anas Nashif <[email protected]>
1 parent 953c1bf commit 133462d

18 files changed

+66
-362
lines changed

meta-zephyr-sdk/recipes-devtools/qemu/files/0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 930b75aeade33690cec4bf748a954401da2be782 Mon Sep 17 00:00:00 2001
1+
From 29dce25c090792e360a1c1ff081af25d63d7df29 Mon Sep 17 00:00:00 2001
22
From: Jason Wessel <[email protected]>
33
Date: Fri, 28 Mar 2014 17:42:43 +0800
44
Subject: [PATCH] qemu: Add addition environment space to boot loader
@@ -18,7 +18,7 @@ Signed-off-by: Roy Li <[email protected]>
1818
1 file changed, 1 insertion(+), 1 deletion(-)
1919

2020
diff --git a/hw/mips/malta.c b/hw/mips/malta.c
21-
index 664a2ae0a..5124b158a 100644
21+
index 198da5ba3..736bf0999 100644
2222
--- a/hw/mips/malta.c
2323
+++ b/hw/mips/malta.c
2424
@@ -64,7 +64,7 @@

meta-zephyr-sdk/recipes-devtools/qemu/files/0001-sched_attr-Do-not-define-for-glibc-2.41.patch

-45
This file was deleted.

meta-zephyr-sdk/recipes-devtools/qemu/files/0001-target-xtensa-add-translation-for-wsr.mpucfg.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 40de936cb535e9645d562ef32ef70d224f4f80ec Mon Sep 17 00:00:00 2001
1+
From c4c7e54d418f2a61188c85be05320d51ff1244a3 Mon Sep 17 00:00:00 2001
22
From: Max Filippov <[email protected]>
33
Date: Thu, 14 Dec 2023 18:08:26 -0800
4-
Subject: [PATCH 1/4] target/xtensa: add translation for wsr.mpucfg
4+
Subject: [PATCH 1/5] target/xtensa: add translation for wsr.mpucfg
55

66
Although MPUCFG is not writable, the opcode wsr.mpucfg is defined and it
77
just does nothing. Define wsr.mpucfg as nop.

meta-zephyr-sdk/recipes-devtools/qemu/files/0002-apic-fixup-fallthrough-to-PIC.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 1ba58dbd2dce4e6ccaf3be3ad5c9ecc22565313f Mon Sep 17 00:00:00 2001
1+
From e069c66ccf29fb13ef5938b68f5362737b64d638 Mon Sep 17 00:00:00 2001
22
From: Mark Asselstine <[email protected]>
33
Date: Tue, 26 Feb 2013 11:43:28 -0500
44
Subject: [PATCH] apic: fixup fallthrough to PIC

meta-zephyr-sdk/recipes-devtools/qemu/files/0002-target-xtensa-import-sample_controller32-core.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From f45b7fe1a7a5cbb2445f4bfd36a6a929fa22bef6 Mon Sep 17 00:00:00 2001
1+
From 73b26889b8e68efee58d3a3bef4e3672c7b166fc Mon Sep 17 00:00:00 2001
22
From: Max Filippov <[email protected]>
33
Date: Thu, 14 Dec 2023 16:47:09 -0800
4-
Subject: [PATCH 2/4] target/xtensa: import sample_controller32 core
4+
Subject: [PATCH 2/5] target/xtensa: import sample_controller32 core
55

66
This is an LX core with MPU and exclusive access options.
77

meta-zephyr-sdk/recipes-devtools/qemu/files/0003-tests-tcg-xtensa-tidy-test-linker-script.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From c700aa6373e4cee40cba849f3bbb4927165d7243 Mon Sep 17 00:00:00 2001
1+
From 7b358c875242cd90ce64b175f9585c0da933b6b6 Mon Sep 17 00:00:00 2001
22
From: Max Filippov <[email protected]>
33
Date: Thu, 14 Dec 2023 16:46:08 -0800
4-
Subject: [PATCH 3/4] tests/tcg/xtensa: tidy test linker script
4+
Subject: [PATCH 3/5] tests/tcg/xtensa: tidy test linker script
55

66
Drop MEMORY clause and related size definitions and output section
77
region specifications. Drop .rodata output section as the tests don't

meta-zephyr-sdk/recipes-devtools/qemu/files/0004-qemu-Do-not-include-file-if-not-exists.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 081c1e4ee93b22ec00136db45c36650427213c09 Mon Sep 17 00:00:00 2001
1+
From 24e16b32dd0a4136ac30f8e2d48e266892814de6 Mon Sep 17 00:00:00 2001
22
From: Oleksiy Obitotskyy <[email protected]>
33
Date: Wed, 25 Mar 2020 21:21:35 +0200
44
Subject: [PATCH] qemu: Do not include file if not exists
@@ -16,10 +16,10 @@ Signed-off-by: Sakib Sajal <[email protected]>
1616
1 file changed, 2 insertions(+)
1717

1818
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
19-
index 9d5415674..22df46859 100644
19+
index 549e39e19..439c7beb0 100644
2020
--- a/linux-user/syscall.c
2121
+++ b/linux-user/syscall.c
22-
@@ -117,7 +117,9 @@
22+
@@ -116,7 +116,9 @@
2323
#include <linux/blkpg.h>
2424
#include <netpacket/packet.h>
2525
#include <linux/netlink.h>

meta-zephyr-sdk/recipes-devtools/qemu/files/0004-tests-tcg-xtensa-fix-SR-test-for-configs-with-MPU.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From f814bc5b4d16403b15fcd80b1678d12202dab0f2 Mon Sep 17 00:00:00 2001
1+
From 21f01eb5a8dfa0ca7d4e4f9b2bf51b89ecc1e3b3 Mon Sep 17 00:00:00 2001
22
From: Max Filippov <[email protected]>
33
Date: Thu, 14 Dec 2023 18:14:00 -0800
4-
Subject: [PATCH 4/4] tests/tcg/xtensa: fix SR test for configs with MPU
4+
Subject: [PATCH 4/5] tests/tcg/xtensa: fix SR test for configs with MPU
55

66
- atomctl is available not only in the presence of s32c1i, but also with
77
the exclusive access option

meta-zephyr-sdk/recipes-devtools/qemu/files/0005-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 76efeccfd73a76834ac1c75d3c94de1899085714 Mon Sep 17 00:00:00 2001
1+
From ef7497674b2d41cffcb90f36bfe145c4951a03ba Mon Sep 17 00:00:00 2001
22
From: Richard Purdie <[email protected]>
33
Date: Fri, 8 Jan 2021 17:27:06 +0000
44
Subject: [PATCH] qemu: Add some user space mmap tweaks to address musl 32 bit
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 1b83e396296f32f7fdd4cf430494e813e5573949 Mon Sep 17 00:00:00 2001
2+
From: Daniel Leung <[email protected]>
3+
Date: Tue, 14 May 2024 09:52:26 -0700
4+
Subject: [PATCH 5/5] target/xtensa: fix sample_controller32 build for QEMU 7
5+
6+
The original patches for adding sample_controller32 are based on
7+
QEMU 9. The GDB stub header file is not in the same place between
8+
these two version. So fix that for QEMU 7. This can be reverted
9+
when we move to QEMU 9.
10+
11+
Signed-off-by: Daniel Leung <[email protected]>
12+
---
13+
target/xtensa/core-sample_controller32.c | 2 +-
14+
1 file changed, 1 insertion(+), 1 deletion(-)
15+
16+
diff --git a/target/xtensa/core-sample_controller32.c b/target/xtensa/core-sample_controller32.c
17+
index 94e75ad6ef..1e6028bc17 100644
18+
--- a/target/xtensa/core-sample_controller32.c
19+
+++ b/target/xtensa/core-sample_controller32.c
20+
@@ -1,6 +1,6 @@
21+
#include "qemu/osdep.h"
22+
#include "cpu.h"
23+
-#include "gdbstub/helpers.h"
24+
+#include "exec/gdbstub.h"
25+
#include "qemu/host-utils.h"
26+
27+
#include "core-sample_controller32/core-isa.h"
28+
--
29+
2.43.0
30+

meta-zephyr-sdk/recipes-devtools/qemu/files/0006-qemu-Determinism-fixes.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 09e8fac984cea71867c0b7a05b0dd8f7025bd25a Mon Sep 17 00:00:00 2001
1+
From b0862cf4fecc11a181bc8c6602c7d09812148249 Mon Sep 17 00:00:00 2001
22
From: Richard Purdie <[email protected]>
33
Date: Mon, 1 Mar 2021 13:00:47 +0000
44
Subject: [PATCH] qemu: Determinism fixes

meta-zephyr-sdk/recipes-devtools/qemu/files/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 1a574aa22c9b3700af7e5c0901abef59c72bb874 Mon Sep 17 00:00:00 2001
1+
From 7bce3a9379b09dfa7d24a377a9f7f1c6a2f8bdde Mon Sep 17 00:00:00 2001
22
From: Changqing Li <[email protected]>
33
Date: Thu, 14 Jan 2021 06:33:04 +0000
44
Subject: [PATCH] tests/meson.build: use relative path to refer to files
@@ -17,10 +17,10 @@ Signed-off-by: Changqing Li <[email protected]>
1717
1 file changed, 3 insertions(+), 3 deletions(-)
1818

1919
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
20-
index 490ab8182..d19ee5606 100644
20+
index d5248ae51..2c581f055 100644
2121
--- a/tests/unit/meson.build
2222
+++ b/tests/unit/meson.build
23-
@@ -128,17 +128,17 @@ endif
23+
@@ -127,17 +127,17 @@ endif
2424

2525
if have_system
2626
tests += {

meta-zephyr-sdk/recipes-devtools/qemu/files/0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 06b5b26a0a1f7687576d90066e492cf2665fff1d Mon Sep 17 00:00:00 2001
1+
From 2c2fde4042578ee29714a6421c33e00c4301d744 Mon Sep 17 00:00:00 2001
22
From: Khem Raj <[email protected]>
33
Date: Mon, 21 Mar 2022 10:09:38 -0700
44
Subject: [PATCH] Define MAP_SYNC and MAP_SHARED_VALIDATE on needed linux

meta-zephyr-sdk/recipes-devtools/qemu/files/0010-configure-lookup-meson-exutable-from-PATH.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 2e9642b9001df523628ab2cacbbbf2b208c49437 Mon Sep 17 00:00:00 2001
1+
From b3435faf13837f487231a01c2dca45a260ae323c Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]>
33
Date: Wed, 22 May 2024 14:02:55 +0200
44
Subject: [PATCH] configure: lookup meson exutable from PATH
@@ -9,10 +9,10 @@ Upstream-Status: Inappropriate [workaround, would need a real fix for upstream]
99
1 file changed, 1 insertion(+), 6 deletions(-)
1010

1111
diff --git a/configure b/configure
12-
index d08b71f14..af0bd2c66 100755
12+
index 18336376b..2b014b97c 100755
1313
--- a/configure
1414
+++ b/configure
15-
@@ -958,12 +958,7 @@ mkvenv="$python ${source_path}/python/scripts/mkvenv.py"
15+
@@ -1002,12 +1002,7 @@ mkvenv="$python ${source_path}/python/scripts/mkvenv.py"
1616
$mkvenv ensuregroup --dir "${source_path}/python/wheels" \
1717
${source_path}/pythondeps.toml meson || exit 1
1818

meta-zephyr-sdk/recipes-devtools/qemu/files/0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 68a13afd6606c2aaf1f0debd325d7314aaa61411 Mon Sep 17 00:00:00 2001
1+
From 81b55a014b2e5f0863a5a3fd584168c9d4ce9eb8 Mon Sep 17 00:00:00 2001
22
From: Richard Purdie <[email protected]>
33
Date: Wed, 22 May 2024 13:58:23 +0200
44
Subject: [PATCH] qemu: Ensure pip and the python venv aren't used for meson
@@ -29,10 +29,10 @@ Signed-off-by: Richard Purdie <[email protected]>
2929
1 file changed, 2 insertions(+), 2 deletions(-)
3030

3131
diff --git a/configure b/configure
32-
index af0bd2c66..88dab6a95 100755
32+
index 2b014b97c..45dc8b146 100755
3333
--- a/configure
3434
+++ b/configure
35-
@@ -944,14 +944,14 @@ python="$(command -v "$python")"
35+
@@ -988,14 +988,14 @@ python="$(command -v "$python")"
3636
echo "python determined to be '$python'"
3737
echo "python version: $($python --version)"
3838

meta-zephyr-sdk/recipes-devtools/qemu/files/fix-strerrorname_np.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9de5de85fa917af58e7bc9cdd88f8f7ef8da2ca9 Mon Sep 17 00:00:00 2001
1+
From 6e5a6d44950c48957f3906294b8efd6a76b91576 Mon Sep 17 00:00:00 2001
22
From: Natanael Copa <[email protected]>
33
Date: Wed, 18 Sep 2024 16:19:37 -0700
44
Subject: [PATCH] target/riscv/kvm: do not use non-portable strerrorname_np()
@@ -20,10 +20,10 @@ Signed-off-by: Natanael Copa <[email protected]>
2020
1 file changed, 1 insertion(+), 2 deletions(-)
2121

2222
diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c
23-
index f6e3156b8..fad9eb21c 100644
23+
index c53ca1f76..3c67129ef 100644
2424
--- a/target/riscv/kvm/kvm-cpu.c
2525
+++ b/target/riscv/kvm/kvm-cpu.c
26-
@@ -1859,8 +1859,7 @@ static bool kvm_cpu_realize(CPUState *cs, Error **errp)
26+
@@ -1870,8 +1870,7 @@ static bool kvm_cpu_realize(CPUState *cs, Error **errp)
2727
if (riscv_has_ext(&cpu->env, RVV)) {
2828
ret = prctl(PR_RISCV_V_SET_CONTROL, PR_RISCV_V_VSTATE_CTRL_ON);
2929
if (ret) {

meta-zephyr-sdk/recipes-devtools/qemu/qemu-zephyr_9.2.1.bb renamed to meta-zephyr-sdk/recipes-devtools/qemu/qemu-zephyr_9.2.3.bb

+7-4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
3838
file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
3939

4040
SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
41+
file://powerpc_rom.bin \
4142
file://run-ptest \
4243
file://fix-strerrorname_np.patch \
4344
file://0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch \
@@ -49,17 +50,19 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
4950
file://0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \
5051
file://0010-configure-lookup-meson-exutable-from-PATH.patch \
5152
file://0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch \
52-
file://0001-sched_attr-Do-not-define-for-glibc-2.41.patch \
53-
file://qemu-guest-agent.init \
54-
file://qemu-guest-agent.udev \
5553
file://0001-target-xtensa-add-translation-for-wsr.mpucfg.patch \
5654
file://0002-target-xtensa-import-sample_controller32-core.patch \
5755
file://0003-tests-tcg-xtensa-tidy-test-linker-script.patch \
5856
file://0004-tests-tcg-xtensa-fix-SR-test-for-configs-with-MPU.patch \
57+
file://0005-target-xtensa-fix-sample_controller32-build-for-QEMU.patch \
58+
file://qemu-guest-agent.init \
59+
file://qemu-guest-agent.udev \
5960
"
61+
# file index at download.qemu.org isn't reliable: https://gitlab.com/qemu-project/qemu-web/-/issues/9
62+
UPSTREAM_CHECK_URI = "https://www.qemu.org"
6063
UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
6164

62-
SRC_URI[sha256sum] = "b7b0782ead63a5373fdfe08e084d3949a9395ec196180286b841f78a464d169c"
65+
SRC_URI[sha256sum] = "baed494270c361bf69816acc84512e3efed71c7a23f76691642b80bc3de7693e"
6366

6467
CVE_STATUS[CVE-2007-0998] = "not-applicable-config: The VNC server can expose host files uder some circumstances. We don't enable it by default."
6568

0 commit comments

Comments
 (0)