[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] bf9643: meson: Allow building binary with no
From: |
Peter Maydell |
Subject: |
[Qemu-commits] [qemu/qemu] bf9643: meson: Allow building binary with no target-specif... |
Date: |
Fri, 05 Jan 2024 08:14:31 -0800 |
Branch: refs/heads/staging
Home: https://github.com/qemu/qemu
Commit: bf964322d643f03650806c33a951fc7d74649190
https://github.com/qemu/qemu/commit/bf964322d643f03650806c33a951fc7d74649190
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M meson.build
Log Message:
-----------
meson: Allow building binary with no target-specific files in hw/
Allow building a qemu-system-foo binary with target-agnostic
only HW models.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231121203129.67999-1-philmd@linaro.org>
Commit: 9c115f68e2d27a7aea71e4956689a091fad1ba64
https://github.com/qemu/qemu/commit/9c115f68e2d27a7aea71e4956689a091fad1ba64
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M linux-user/alpha/target_elf.h
M target/alpha/cpu.c
Log Message:
-----------
target/alpha: Remove fallback to ev67 cpu class
'ev67' CPU class will be returned to match everything, which makes
no sense as mentioned in the comments. Remove the logic to fall
back to 'ev67' CPU class to match everything.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-2-gshan@redhat.com>
[PMD: Reword subject, replace 'any' -> 'ev67' on linux-user]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: b0b8fa181472a7e745cb0c2c33b5c84dbb3b34ef
https://github.com/qemu/qemu/commit/b0b8fa181472a7e745cb0c2c33b5c84dbb3b34ef
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/hppa/cpu.c
Log Message:
-----------
target/hppa: Remove object_class_is_abstract()
Since commit 3a9d0d7b64 ("hw/cpu: Call object_class_is_abstract()
once in cpu_class_by_name()"), there is no need to check if @oc is
abstract because it has been covered by cpu_class_by_name().
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-3-gshan@redhat.com>
[PMD: Mention commit 3a9d0d7b64]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: d5be19f514ece5e20baf560f466ee46766e7d5a3
https://github.com/qemu/qemu/commit/d5be19f514ece5e20baf560f466ee46766e7d5a3
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/core/cpu-common.c
M target/alpha/cpu.c
M target/arm/cpu.c
M target/avr/cpu.c
M target/cris/cpu.c
M target/hexagon/cpu.c
M target/hppa/cpu.c
M target/loongarch/cpu.c
M target/m68k/cpu.c
M target/openrisc/cpu.c
M target/riscv/cpu.c
M target/tricore/cpu.c
M target/xtensa/cpu.c
Log Message:
-----------
cpu: Call object_class_dynamic_cast() once in cpu_class_by_name()
For all targets, the CPU class returned from CPUClass::class_by_name()
and object_class_dynamic_cast(oc, CPU_RESOLVING_TYPE) need to be
compatible. Lets apply the check in cpu_class_by_name() for once,
instead of having the check in CPUClass::class_by_name() for individual
target.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Message-ID: <20231114235628.534334-4-gshan@redhat.com>
Commit: 445946f4dd144c40153f112a5285fe23223e71f8
https://github.com/qemu/qemu/commit/445946f4dd144c40153f112a5285fe23223e71f8
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M cpu-target.c
M include/hw/core/cpu.h
Log Message:
-----------
cpu: Add helper cpu_model_from_type()
Add helper cpu_model_from_type() to extract the CPU model name from
the CPU type name in two circumstances: (1) The CPU type name is the
combination of the CPU model name and suffix. (2) The CPU type name
is same to the CPU model name.
The helper will be used in the subsequent commits to conver the
CPU type name to the CPU model name.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-6-gshan@redhat.com>
[PMD: Mention returned string must be released with g_free()]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: dfa4753131a77e628e0951bdf294b48c145d3dd6
https://github.com/qemu/qemu/commit/dfa4753131a77e628e0951bdf294b48c145d3dd6
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M bsd-user/main.c
M cpu-target.c
Log Message:
-----------
cpu: Add generic cpu_list()
Add generic cpu_list() to replace the individual target's implementation
in the subsequent commits. Currently, there are 3 targets with no cpu_list()
implementation: microblaze and nios2. With this applied, those two targets
switch to the generic cpu_list().
[gshan@gshan q]$ ./build/qemu-system-microblaze -cpu ?
Available CPUs:
microblaze-cpu
[gshan@gshan q]$ ./build/qemu-system-nios2 -cpu ?
Available CPUs:
nios2-cpu
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-7-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 51d49bd1db9ad1dd51196471472f0908f2fe5ba9
https://github.com/qemu/qemu/commit/51d49bd1db9ad1dd51196471472f0908f2fe5ba9
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/alpha/cpu.c
M target/alpha/cpu.h
Log Message:
-----------
target/alpha: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-alpha -cpu ?
Available CPUs:
ev4-alpha-cpu
ev5-alpha-cpu
ev56-alpha-cpu
ev6-alpha-cpu
ev67-alpha-cpu
ev68-alpha-cpu
pca56-alpha-cpu
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-alpha -cpu ?
Available CPUs:
ev4
ev5
ev56
ev6
ev67
ev68
pca56
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-8-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: b5154a2d61ec07bde26e66019542f82acaa9f14c
https://github.com/qemu/qemu/commit/b5154a2d61ec07bde26e66019542f82acaa9f14c
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/arm/cpu.h
M target/arm/helper.c
Log Message:
-----------
target/arm: Use generic cpu_list()
No changes of the output from the following command before and
after it's applied.
[gshan@gshan q]$ ./build/qemu-system-aarch64 -cpu ?
Available CPUs:
a64fx
arm1026
arm1136
arm1136-r2
arm1176
arm11mpcore
arm926
arm946
cortex-a15
cortex-a35
cortex-a53
cortex-a55
cortex-a57
cortex-a7
cortex-a710
cortex-a72
cortex-a76
cortex-a8
cortex-a9
cortex-m0
cortex-m3
cortex-m33
cortex-m4
cortex-m55
cortex-m7
cortex-r5
cortex-r52
cortex-r5f
max
neoverse-n1
neoverse-n2
neoverse-v1
pxa250
pxa255
pxa260
pxa261
pxa262
pxa270-a0
pxa270-a1
pxa270
pxa270-b0
pxa270-b1
pxa270-c0
pxa270-c5
sa1100
sa1110
ti925t
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-9-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 7db8f7e895bff8b2eac08dfbc977d22a5a9fff36
https://github.com/qemu/qemu/commit/7db8f7e895bff8b2eac08dfbc977d22a5a9fff36
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/avr/cpu.c
M target/avr/cpu.h
Log Message:
-----------
target/avr: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-avr -cpu ?
avr5-avr-cpu
avr51-avr-cpu
avr6-avr-cpu
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-avr -cpu ?
Available CPUs:
avr5
avr51
avr6
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-10-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: dd447f0439e7579aa7187051ed5613a126046c2f
https://github.com/qemu/qemu/commit/dd447f0439e7579aa7187051ed5613a126046c2f
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/cris/cpu.c
M target/cris/cpu.h
Log Message:
-----------
target/cris: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-cris -cpu ?
Available CPUs:
crisv8
crisv9
crisv10
crisv11
crisv17
crisv32
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-cris -cpu ?
Available CPUs:
crisv10
crisv11
crisv17
crisv32
crisv8
crisv9
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-11-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: ee0b8ced56302710b7cf034200a2dab0a16d42f0
https://github.com/qemu/qemu/commit/ee0b8ced56302710b7cf034200a2dab0a16d42f0
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/hexagon/cpu.c
M target/hexagon/cpu.h
Log Message:
-----------
target/hexagon: Use generic cpu_list()
No changes in the output from the following command.
[gshan@gshan q]$ ./build/qemu-hexagon -cpu ?
Available CPUs:
v67
v68
v69
v71
v73
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-12-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: d33fc716dc7407c5feb7f8a73d0b977540f8ffd0
https://github.com/qemu/qemu/commit/d33fc716dc7407c5feb7f8a73d0b977540f8ffd0
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/hppa/cpu.c
M target/hppa/cpu.h
Log Message:
-----------
target/hppa: Use generic cpu_list()
No changes in the output from the following command.
[gshan@gshan q]$ ./build/qemu-system-hppa -cpu ?
Available CPUs:
hppa
hppa64
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-13-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 979bf44af8483cedc00c63b3e79407de08e75a30
https://github.com/qemu/qemu/commit/979bf44af8483cedc00c63b3e79407de08e75a30
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/loongarch/cpu.c
M target/loongarch/cpu.h
Log Message:
-----------
target/loongarch: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-loongarch64 -cpu ?
la132-loongarch-cpu
la464-loongarch-cpu
max-loongarch-cpu
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-loongarch64 -cpu ?
Available CPUs:
la132
la464
max
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-14-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 261f406db9fb88d7f632caba09b63e842571e9c7
https://github.com/qemu/qemu/commit/261f406db9fb88d7f632caba09b63e842571e9c7
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/m68k/cpu.h
M target/m68k/helper.c
Log Message:
-----------
target/m68k: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-m68k -cpu ?
cfv4e
m5206
m5208
m68000
m68010
m68020
m68030
m68040
m68060
any
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-m68k -cpu ?
Available CPUs:
any
cfv4e
m5206
m5208
m68000
m68010
m68020
m68030
m68040
m68060
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-15-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 31c51470101f43782b6ed4f948b427748777d4db
https://github.com/qemu/qemu/commit/31c51470101f43782b6ed4f948b427748777d4db
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/mips/cpu-defs.c.inc
M target/mips/cpu.h
Log Message:
-----------
target/mips: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-mips64 -cpu ?
MIPS '4Kc'
MIPS '4Km'
MIPS '4KEcR1'
MIPS 'XBurstR1'
MIPS '4KEmR1'
MIPS '4KEc'
MIPS '4KEm'
MIPS '24Kc'
MIPS '24KEc'
MIPS '24Kf'
MIPS '34Kf'
MIPS '74Kf'
MIPS 'XBurstR2'
MIPS 'M14K'
MIPS 'M14Kc'
MIPS 'P5600'
MIPS 'mips32r6-generic'
MIPS 'I7200'
MIPS 'R4000'
MIPS 'VR5432'
MIPS '5Kc'
MIPS '5Kf'
MIPS '20Kc'
MIPS 'MIPS64R2-generic'
MIPS '5KEc'
MIPS '5KEf'
MIPS 'I6400'
MIPS 'I6500'
MIPS 'Loongson-2E'
MIPS 'Loongson-2F'
MIPS 'Loongson-3A1000'
MIPS 'Loongson-3A4000'
MIPS 'mips64dspr2'
MIPS 'Octeon68XX'
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-mips64 -cpu ?
Available CPUs:
20Kc
24Kc
24KEc
24Kf
34Kf
4Kc
4KEc
4KEcR1
4KEm
4KEmR1
4Km
5Kc
5KEc
5KEf
5Kf
74Kf
I6400
I6500
I7200
Loongson-2E
Loongson-2F
Loongson-3A1000
Loongson-3A4000
M14K
M14Kc
mips32r6-generic
mips64dspr2
MIPS64R2-generic
Octeon68XX
P5600
R4000
VR5432
XBurstR1
XBurstR2
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-16-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 72b381f1339e52a9fc672c39b2611dc1a79899ca
https://github.com/qemu/qemu/commit/72b381f1339e52a9fc672c39b2611dc1a79899ca
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/openrisc/cpu.c
M target/openrisc/cpu.h
Log Message:
-----------
target/openrisc: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-or1k -cpu ?
Available CPUs:
or1200
any
After it's applied:
[gshan@gshan q]$ ./build/qemu-or1k -cpu ?
Available CPUs:
any
or1200
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-17-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 3144fbc94240f5c7dceaf0973e37bb7d14cd4021
https://github.com/qemu/qemu/commit/3144fbc94240f5c7dceaf0973e37bb7d14cd4021
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/riscv/cpu.c
M target/riscv/cpu.h
Log Message:
-----------
target/riscv: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-riscv64 -cpu ?
any
max
rv64
shakti-c
sifive-e51
sifive-u54
thead-c906
veyron-v1
x-rv128
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-riscv64 -cpu ?
Available CPUs:
any
max
rv64
shakti-c
sifive-e51
sifive-u54
thead-c906
veyron-v1
x-rv128
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-18-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: c16de0d9fdaf83d38f2f5141b35c9b3fbfcece78
https://github.com/qemu/qemu/commit/c16de0d9fdaf83d38f2f5141b35c9b3fbfcece78
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/rx/cpu.c
M target/rx/cpu.h
Log Message:
-----------
target/rx: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-rx -cpu ?
Available CPUs:
rx62n-rx-cpu
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-rx -cpu ?
Available CPUs:
rx62n
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-19-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 08536d1175c02f3e7d930149b878abadc6cb7530
https://github.com/qemu/qemu/commit/08536d1175c02f3e7d930149b878abadc6cb7530
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/sh4/cpu.c
M target/sh4/cpu.h
Log Message:
-----------
target/sh4: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-sh4 -cpu ?
sh7750r
sh7751r
sh7785
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-sh4 -cpu ?
Available CPUs:
sh7750r
sh7751r
sh7785
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-20-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 40b807e26c1556184485b8226745e966d162feba
https://github.com/qemu/qemu/commit/40b807e26c1556184485b8226745e966d162feba
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/tricore/cpu.h
M target/tricore/helper.c
Log Message:
-----------
target/tricore: Use generic cpu_list()
No changes in the output from the following command.
[gshan@gshan q]$ ./build/qemu-system-tricore -cpu ?
Available CPUs:
tc1796
tc1797
tc27x
tc37x
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-21-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: f08f4c8ea46817e8efaad0f36434631b93f86645
https://github.com/qemu/qemu/commit/f08f4c8ea46817e8efaad0f36434631b93f86645
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/xtensa/cpu.h
M target/xtensa/helper.c
Log Message:
-----------
target/xtensa: Use generic cpu_list()
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-xtensa -cpu ?
Available CPUs:
test_mmuhifi_c3
sample_controller
lx106
dsp3400
de233_fpu
de212
dc233c
dc232b
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-xtensa -cpu ?
Available CPUs:
dc232b
dc233c
de212
de233_fpu
dsp3400
lx106
sample_controller
test_mmuhifi_c3
Signed-off-by: Gavin Shan <gshan@redhat.com>
Message-ID: <20231114235628.534334-22-gshan@redhat.com>
[PMD: Split patch in 2, only include the "Use generic cpu_list" change]
Message-ID: <51ffd060-b2f8-405c-83e1-a0663c0183f5@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 4b26aa9f3a9a1f1e84f95e7462d1b3d893315b91
https://github.com/qemu/qemu/commit/4b26aa9f3a9a1f1e84f95e7462d1b3d893315b91
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M target/arm/arm-qmp-cmds.c
M target/i386/cpu.c
M target/loongarch/loongarch-qmp-cmds.c
M target/mips/sysemu/mips-qmp-cmds.c
M target/ppc/cpu_init.c
M target/ppc/ppc-qmp-cmds.c
M target/riscv/cpu.c
M target/riscv/riscv-qmp-cmds.c
Log Message:
-----------
target: Use generic cpu_model_from_type()
Use generic cpu_model_from_type() when the CPU model name needs to
be extracted from the CPU type name.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-23-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1
https://github.com/qemu/qemu/commit/62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/core/machine.c
M include/hw/boards.h
M system/vl.c
Log Message:
-----------
hw/core: Add machine_class_default_cpu_type()
Add a helper to return a machine default CPU type.
If this machine is restricted to a single CPU type,
use it as default, obviously.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231116163726.28952-1-philmd@linaro.org>
Commit: b9f452142cf4d47d97f6e6e2b727c9237443eb0f
https://github.com/qemu/qemu/commit/b9f452142cf4d47d97f6e6e2b727c9237443eb0f
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/core/machine.c
Log Message:
-----------
machine: Use error handling when CPU type is checked
Functions that use an Error **errp parameter to return errors should
not also report them to the user, because reporting is the caller's
job. The principle is violated by machine_run_board_init() because
it calls error_report(), error_printf(), and exit(1) when the machine
doesn't support the requested CPU type.
Clean this up by using error_setg() and error_append_hint() instead.
No functional change, as the only caller passes &error_fatal.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20231204004726.483558-2-gshan@redhat.com>
[PMD: Correct error_append_hint() argument]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: acbadc5a29b957d525dd89d668bfc939ac1f8bb8
https://github.com/qemu/qemu/commit/acbadc5a29b957d525dd89d668bfc939ac1f8bb8
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/core/machine.c
Log Message:
-----------
machine: Introduce helper is_cpu_type_supported()
The logic, to check if the specified CPU type is supported in
machine_run_board_init(), is independent enough. Factor it out into
helper is_cpu_type_supported(). machine_run_board_init() looks a bit
clean with this. Since we're here, @machine_class is renamed to @mc to
avoid multiple line spanning of code. The comments are tweaked a bit
either.
No functional change intended.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231204004726.483558-3-gshan@redhat.com>
[PMD: Only call new helper if machine->cpu_type is not NULL]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: e702cbc19e6bc04685a48f9e07cbf74bf4d53042
https://github.com/qemu/qemu/commit/e702cbc19e6bc04685a48f9e07cbf74bf4d53042
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/core/machine.c
Log Message:
-----------
machine: Improve is_cpu_type_supported()
It's no sense to check the CPU type when mc->valid_cpu_types[0] is
NULL, which is a program error. Raise an assert on this.
A precise hint for the error message is given when mc->valid_cpu_types[0]
is the only valid entry. Besides, enumeration on mc->valid_cpu_types[0]
when we have mutiple valid entries there is avoided to increase the code
readability, as suggested by Philippe Mathieu-Daudé.
Besides, @cc comes from machine->cpu_type or mc->default_cpu_type. For
the later case, it can be NULL and it's also a program error. We should
use assert() in this case.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Message-ID: <20231204004726.483558-4-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 5422d2a8fa88471b49b8d8cd6a13d9ecbb0c6cb7
https://github.com/qemu/qemu/commit/5422d2a8fa88471b49b8d8cd6a13d9ecbb0c6cb7
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/core/machine.c
Log Message:
-----------
machine: Print CPU model name instead of CPU type
The names of supported CPU models instead of CPU types should be
printed when the user specified CPU type isn't supported, to be
consistent with the output from '-cpu ?'.
Correct the error messages to print CPU model names instead of CPU
type names.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231204004726.483558-5-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 4eab51a32acbeeb35de8080dceb92d6e3cdaa3d3
https://github.com/qemu/qemu/commit/4eab51a32acbeeb35de8080dceb92d6e3cdaa3d3
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/virt.c
Log Message:
-----------
hw/arm/virt: Hide host CPU model for tcg
The 'host' CPU model isn't available until KVM or HVF is enabled.
For example, the following error messages are seen when the guest
is started with option '-cpu cortex-a8' on tcg after the next commit
is applied to check the CPU type in machine_run_board_init().
ERROR:../hw/core/machine.c:1423:is_cpu_type_supported: \
assertion failed: (model != NULL)
Bail out! ERROR:../hw/core/machine.c:1423:is_cpu_type_supported: \
assertion failed: (model != NULL)
Aborted (core dumped)
Hide 'host' CPU model until KVM or HVF is enabled. With this applied,
the valid CPU models can be shown.
qemu-system-aarch64: Invalid CPU type: cortex-a8
The valid types are: cortex-a7, cortex-a15, cortex-a35, \
cortex-a55, cortex-a72, cortex-a76, cortex-a710, a64fx, \
neoverse-n1, neoverse-v1, neoverse-n2, cortex-a53, \
cortex-a57, max
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231204004726.483558-6-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: fa8c61779183f65d3d4bbc0b00a1a9a9f6a5c57e
https://github.com/qemu/qemu/commit/fa8c61779183f65d3d4bbc0b00a1a9a9f6a5c57e
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/virt.c
Log Message:
-----------
hw/arm/virt: Check CPU type in machine_run_board_init()
Set mc->valid_cpu_types so that the user specified CPU type can be
validated in machine_run_board_init(). We needn't to do the check
by ourselves.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231204004726.483558-7-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: dbf8e8c4332820c3b4e5a85f039fe758c6a26b97
https://github.com/qemu/qemu/commit/dbf8e8c4332820c3b4e5a85f039fe758c6a26b97
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/sbsa-ref.c
Log Message:
-----------
hw/arm/sbsa-ref: Check CPU type in machine_run_board_init()
Set mc->valid_cpu_types so that the user specified CPU type can
be validated in machine_run_board_init(). We needn't to do it
by ourselves.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231204004726.483558-8-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 3e71f4a706560406e320eaff7d622efd12912e7e
https://github.com/qemu/qemu/commit/3e71f4a706560406e320eaff7d622efd12912e7e
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/bananapi_m2u.c
M hw/arm/cubieboard.c
M hw/arm/mps2-tz.c
M hw/arm/mps2.c
M hw/arm/msf2-som.c
M hw/arm/musca.c
M hw/arm/npcm7xx_boards.c
M hw/arm/orangepi.c
Log Message:
-----------
hw/arm: Check CPU type in machine_run_board_init()
Set mc->valid_cpu_types so that the user specified CPU type can
be validated in machine_run_board_init(). We needn't to do it by
ourselves.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231204004726.483558-9-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: cd75cc633709ceb5ef26a7fc0bbc6e7c6444a9c8
https://github.com/qemu/qemu/commit/cd75cc633709ceb5ef26a7fc0bbc6e7c6444a9c8
Author: Gavin Shan <gshan@redhat.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/riscv/shakti_c.c
Log Message:
-----------
hw/riscv/shakti_c: Check CPU type in machine_run_board_init()
Set mc->valid_cpu_types so that the user specified CPU type can
be validated in machine_run_board_init(). We needn't to do it
by ourselves.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231204004726.483558-10-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: e9f760f27a45598071684f05e0aece00678010d1
https://github.com/qemu/qemu/commit/e9f760f27a45598071684f05e0aece00678010d1
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/hw/core/cpu.h
Log Message:
-----------
hw/core/cpu: Remove final vestiges of dynamic state tracing
The dynamic state tracing was removed in commit d0aaf08bb9.
Fixes: d0aaf08bb9 ("tcg: remove the final vestiges of dstate")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231129182734.15565-1-philmd@linaro.org>
Commit: 8d41afa429ea36516e3ab1a1dc4d01ca6b9c0101
https://github.com/qemu/qemu/commit/8d41afa429ea36516e3ab1a1dc4d01ca6b9c0101
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/hw/core/cpu.h
Log Message:
-----------
hw/core/cpu: Update description of CPUState::node
'next_cpu' was converted to 'node' in commit bdc44640cb
("cpu: Use QTAILQ for CPU list").
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231129183243.15859-1-philmd@linaro.org>
Commit: 72bb89582447ed896e95883ff9741fa0fc95a5bd
https://github.com/qemu/qemu/commit/72bb89582447ed896e95883ff9741fa0fc95a5bd
Author: Zhao Liu <zhao1.liu@intel.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/cpu/core.c
Log Message:
-----------
hw/cpu/core: Cleanup unused included header in core.c
Remove unused header (qemu/module.h and sysemu/cpus.h) in core.c,
and reorder the remaining header files (except qemu/osdep.h) in
alphabetical order.
Tested by "./configure" and then "make".
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231127145611.925817-2-zhao1.liu@linux.intel.com>
Commit: a8a9f698ac7883cbce991d7e02db0981d152378e
https://github.com/qemu/qemu/commit/a8a9f698ac7883cbce991d7e02db0981d152378e
Author: Zhao Liu <zhao1.liu@intel.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/cpu/cluster.c
Log Message:
-----------
hw/cpu/cluster: Cleanup unused included header in cluster.c
Remove unused header (qemu/module.h and qemu/cutils.h) in cluster.c,
and reorder the remaining header files (except qemu/osdep.h) in
alphabetical order.
Tested by "./configure" and then "make".
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231127145611.925817-3-zhao1.liu@linux.intel.com>
Commit: fa293f8125cbbcf147fdaed0873e40130cc75463
https://github.com/qemu/qemu/commit/fa293f8125cbbcf147fdaed0873e40130cc75463
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/audio/sb16.c
Log Message:
-----------
hw/audio/sb16: Do not migrate qdev properties
Since commit f7b4f61f63 ("qdev/isa: convert soundblaster") these
fields have been converted to qdev properties, so don't need to
be migrated:
static Property sb16_properties[] = {
DEFINE_AUDIO_PROPERTIES(SB16State, card),
DEFINE_PROP_UINT32 ("version", SB16State, ver, 0x0405), /* 4.5 */
DEFINE_PROP_UINT32 ("iobase", SB16State, port, 0x220),
DEFINE_PROP_UINT32 ("irq", SB16State, irq, 5),
DEFINE_PROP_UINT32 ("dma", SB16State, dma, 1),
DEFINE_PROP_UINT32 ("dma16", SB16State, hdma, 5),
DEFINE_PROP_END_OF_LIST (),
};
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-Id: <20231124182615.94943-1-philmd@linaro.org>
Commit: ca1d323ca504e68af2c1b19dc99ec73054359507
https://github.com/qemu/qemu/commit/ca1d323ca504e68af2c1b19dc99ec73054359507
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/bcm2836.c
Log Message:
-----------
hw/arm/bcm2836: Simplify use of 'reset-cbar' property
bcm2836_realize() is called by
- bcm2836_class_init() which sets:
bc->cpu_type = ARM_CPU_TYPE_NAME("cortex-a7")
- bcm2837_class_init() which sets:
bc->cpu_type = ARM_CPU_TYPE_NAME("cortex-a53")
Both Cortex-A7 / A53 have the ARM_FEATURE_CBAR set. If it isn't,
then this is a programming error: use &error_abort.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20231123143813.42632-3-philmd@linaro.org>
Commit: 79f5169501396ba90a32971fc66886fcf60ec52f
https://github.com/qemu/qemu/commit/79f5169501396ba90a32971fc66886fcf60ec52f
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/bcm2836.c
Log Message:
-----------
hw/arm/bcm2836: Use ARM_CPU 'mp-affinity' property
The 'mp-affinity' property is present since commit 15a21fe028
("target-arm: Add mp-affinity property for ARM CPU class").
Use it and remove a /* TODO */ comment. Since all ARM CPUs
have this property, use &error_abort, because this call can
not fail.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20231123143813.42632-4-philmd@linaro.org>
Commit: eab4f398f4c12c57cff0e5c790cf3a7bb1f7769a
https://github.com/qemu/qemu/commit/eab4f398f4c12c57cff0e5c790cf3a7bb1f7769a
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/ppc/spapr_cpu_core.c
Log Message:
-----------
hw/ppc/spapr_cpu_core: Access QDev properties with proper API
CPUState::start_powered_off field is part of the internal
implementation of a QDev CPU. It is exposed as the QDev
"start-powered-off" property. External components should
use the qdev properties API to access it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Message-Id: <20231123143813.42632-2-philmd@linaro.org>
Commit: 287fa3232426283a5905643bd5453e28b97fb28c
https://github.com/qemu/qemu/commit/287fa3232426283a5905643bd5453e28b97fb28c
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/armsse.c
M hw/arm/armv7m.c
M hw/arm/bcm2836.c
M hw/mips/cps.c
M hw/ppc/e500.c
M hw/sparc/sun4m.c
Log Message:
-----------
hw: Simplify accesses to the CPUState::'start-powered-off' property
The 'start-powered-off' property has been added to ARM CPUs in
commit 5de164304a ("arm: Allow secondary KVM CPUs to be booted
via PSCI"), then eventually got generalized to all CPUs in commit
c1b701587e ("target/arm: Move start-powered-off property to generic
CPUState"). Since all CPUs have it, no need to check whether it is
available. Updating this property can't fail, so use &error_abort.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20231123143813.42632-5-philmd@linaro.org>
Commit: 989f31658e1e64bf9848c395af0c7a7b47fa5cbf
https://github.com/qemu/qemu/commit/989f31658e1e64bf9848c395af0c7a7b47fa5cbf
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/hw/ppc/xive2_regs.h
Log Message:
-----------
hw/ppc/xive2_regs: Remove unnecessary 'cpu.h' inclusion
xive2_regs.h only requires declarations from "qemu/bswap.h".
Include it instead of the huge target-specific "cpu.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20231122183920.17905-1-philmd@linaro.org>
Commit: 1eb64c39d093a20f773e87fd4d0509a33476c707
https://github.com/qemu/qemu/commit/1eb64c39d093a20f773e87fd4d0509a33476c707
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/mips/jazz.c
M hw/mips/malta.c
M hw/mips/mipssim.c
R include/hw/mips/bios.h
Log Message:
-----------
hw/mips: Inline 'bios.h' definitions
There is no universal BIOS, each machine needs a specific one.
Move the machine-specific definitions to each machine code and
remove this bogus header.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231122184334.18201-1-philmd@linaro.org>
Commit: cbbc4340232107a85809a7abc37435bead937597
https://github.com/qemu/qemu/commit/cbbc4340232107a85809a7abc37435bead937597
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_ram_flags_nomigrate() return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_ram_nomigrate
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-2-philmd@linaro.org>
Commit: 62c19b72c7fefb5fcd13ed4e2c833d2f99458193
https://github.com/qemu/qemu/commit/62c19b72c7fefb5fcd13ed4e2c833d2f99458193
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_ram_nomigrate() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_ram_nomigrate
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-3-philmd@linaro.org>
Commit: 197faa7006313407ade82de8bc49d52da610da46
https://github.com/qemu/qemu/commit/197faa7006313407ade82de8bc49d52da610da46
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_rom_nomigrate() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_rom_nomigrate
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-4-philmd@linaro.org>
[PMD: Only update 'readonly' field on success (Manos Pitsidianakis)]
Message-Id: <af352e7d-3346-4705-be77-6eed86858d18@linaro.org>
Commit: fd7549ee1396fc8051aac5e4cfc81458591ceafe
https://github.com/qemu/qemu/commit/fd7549ee1396fc8051aac5e4cfc81458591ceafe
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M system/memory.c
Log Message:
-----------
memory: Simplify memory_region_init_rom_nomigrate() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, errp;
@@
- memory_region_init_rom_nomigrate(mr, owner, arg3, arg4, &errp);
if (
- errp
+ !memory_region_init_rom_nomigrate(mr, owner, arg3, arg4, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-5-philmd@linaro.org>
Commit: d3143bd53192d5921cd948e348650eb1f7857da7
https://github.com/qemu/qemu/commit/d3143bd53192d5921cd948e348650eb1f7857da7
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M system/memory.c
Log Message:
-----------
memory: Simplify memory_region_init_ram_from_fd() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, arg5, arg6, arg7, errp;
@@
- memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6, arg7,
&errp);
if (
- errp
+ !memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6,
arg7, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-6-philmd@linaro.org>
Commit: fe5f33d6b086d6911d69dd77abe09b21bdb2ea5f
https://github.com/qemu/qemu/commit/fe5f33d6b086d6911d69dd77abe09b21bdb2ea5f
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_ram() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_ram()
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-7-philmd@linaro.org>
Commit: b9159451d3411bfef528f431c98527c172cd46e8
https://github.com/qemu/qemu/commit/b9159451d3411bfef528f431c98527c172cd46e8
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_rom() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_rom()
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-8-philmd@linaro.org>
Commit: ae076b6c39bfd2027e35ca5be922dc8f1b18b901
https://github.com/qemu/qemu/commit/ae076b6c39bfd2027e35ca5be922dc8f1b18b901
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_rom_device_nomigrate() return a boolean
Following the example documented since commit e3fe3988d7
("error: Document Error API usage rules"), have
memory_region_init_rom_device_nomigrate() return a boolean
indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-9-philmd@linaro.org>
Commit: bd3aa06950a17a7ff5acf231bcafe59b25cc0ff9
https://github.com/qemu/qemu/commit/bd3aa06950a17a7ff5acf231bcafe59b25cc0ff9
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M system/memory.c
Log Message:
-----------
memory: Simplify memory_region_init_rom_device_nomigrate() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, arg5, arg6, errp;
@@
- memory_region_init_rom_device_nomigrate(mr, owner, arg3, arg4, arg5, arg6,
&errp);
if (
- errp
+ !memory_region_init_rom_device_nomigrate(mr, owner, arg3, arg4, arg5,
arg6, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-10-philmd@linaro.org>
Commit: 62f5c1b234e27357b08ba01124c17f61729ceae8
https://github.com/qemu/qemu/commit/62f5c1b234e27357b08ba01124c17f61729ceae8
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_rom_device() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_rom_device
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-11-philmd@linaro.org>
Commit: f25a9fbb649f564f152c95c44a5f2c0c6f4237a9
https://github.com/qemu/qemu/commit/f25a9fbb649f564f152c95c44a5f2c0c6f4237a9
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_resizeable_ram() return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_resizeable_ram
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-12-philmd@linaro.org>
Commit: 9b9d11ac03b2802d67c132afaae3d37dd2f0b16f
https://github.com/qemu/qemu/commit/9b9d11ac03b2802d67c132afaae3d37dd2f0b16f
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_ram_from_file() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_ram_from_file
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-13-philmd@linaro.org>
Commit: 9583a905793986d9018fe1fbb17d17fb4f0d76dd
https://github.com/qemu/qemu/commit/9583a905793986d9018fe1fbb17d17fb4f0d76dd
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/exec/memory.h
M system/memory.c
Log Message:
-----------
memory: Have memory_region_init_ram_from_fd() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_ram_from_fd
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-14-philmd@linaro.org>
Commit: 2d7a1eb6e65d5dd32cb9943b6fb3c81d206cd61f
https://github.com/qemu/qemu/commit/2d7a1eb6e65d5dd32cb9943b6fb3c81d206cd61f
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M backends/hostmem-epc.c
M backends/hostmem-file.c
M backends/hostmem-memfd.c
M backends/hostmem-ram.c
Log Message:
-----------
backends: Use g_autofree in HostMemoryBackendClass::alloc() handlers
In preparation of having HostMemoryBackendClass::alloc() handlers
return a boolean, have them use g_autofree.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-15-philmd@linaro.org>
Commit: e199f7ad4df8b2c2efad0acdea91b936c130261c
https://github.com/qemu/qemu/commit/e199f7ad4df8b2c2efad0acdea91b936c130261c
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M backends/hostmem.c
Log Message:
-----------
backends: Simplify host_memory_backend_memory_complete()
Return early if bc->alloc is NULL. De-indent the if() ladder.
Note, this avoids a pointless call to error_propagate() with
errp=NULL at the 'out:' label.
Change trivial when reviewed with 'git-diff --ignore-all-space'.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-16-philmd@linaro.org>
Commit: fdb63cf3b57a230f4cc530ea2515229aeada0998
https://github.com/qemu/qemu/commit/fdb63cf3b57a230f4cc530ea2515229aeada0998
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M backends/hostmem-epc.c
M backends/hostmem-file.c
M backends/hostmem-memfd.c
M backends/hostmem-ram.c
M backends/hostmem.c
M include/sysemu/hostmem.h
Log Message:
-----------
backends: Have HostMemoryBackendClass::alloc() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have HostMemoryBackendClass::alloc
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-17-philmd@linaro.org>
Commit: 3961613a760766921cdd6423ced0f801c2a6f1fc
https://github.com/qemu/qemu/commit/3961613a760766921cdd6423ced0f801c2a6f1fc
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M backends/hostmem.c
Log Message:
-----------
backends: Reduce variable scope in host_memory_backend_memory_complete
Reduce the &local_err variable use and remove the 'out:' label.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-18-philmd@linaro.org>
Commit: b622ee98bf784b093494a81c46667bd6e6324f1a
https://github.com/qemu/qemu/commit/b622ee98bf784b093494a81c46667bd6e6324f1a
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M include/qemu/osdep.h
M util/oslib-posix.c
M util/oslib-win32.c
Log Message:
-----------
util/oslib: Have qemu_prealloc_mem() handler return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have qemu_prealloc_mem()
return a boolean indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-19-philmd@linaro.org>
Commit: 9c878ad6fbfc7934c9c4f6ba607c0842202afdbb
https://github.com/qemu/qemu/commit/9c878ad6fbfc7934c9c4f6ba607c0842202afdbb
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M backends/hostmem.c
M hw/virtio/virtio-mem.c
Log Message:
-----------
misc: Simplify qemu_prealloc_mem() calls
Since qemu_prealloc_mem() returns whether or not an error
occured, we don't need to check the @errp pointer. Remove
local_err uses when we can return directly.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-20-philmd@linaro.org>
Commit: 2198f5f0f2f3f5470a9e3c0c1431dec022bb67ad
https://github.com/qemu/qemu/commit/2198f5f0f2f3f5470a9e3c0c1431dec022bb67ad
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/aspeed_ast2400.c
M hw/arm/aspeed_ast2600.c
M hw/arm/fsl-imx25.c
M hw/arm/fsl-imx31.c
M hw/arm/fsl-imx6.c
M hw/arm/integratorcp.c
M hw/arm/nrf51_soc.c
M hw/ppc/rs6000_mc.c
Log Message:
-----------
hw: Simplify memory_region_init_ram() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, errp;
@@
- memory_region_init_ram(mr, owner, arg3, arg4, &errp);
if (
- errp
+ !memory_region_init_ram(mr, owner, arg3, arg4, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au> # aspeed
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-21-philmd@linaro.org>
Commit: 419d8524a266ece5ea44e689174ab026df888d08
https://github.com/qemu/qemu/commit/419d8524a266ece5ea44e689174ab026df888d08
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/arm/fsl-imx25.c
M hw/arm/fsl-imx31.c
M hw/arm/fsl-imx6.c
Log Message:
-----------
hw/arm: Simplify memory_region_init_rom() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, errp;
@@
- memory_region_init_rom(mr, owner, arg3, arg4, &errp);
if (
- errp
+ !memory_region_init_rom(mr, owner, arg3, arg4, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-22-philmd@linaro.org>
Commit: 02e0ecb42ccbf750bb60f82c23ef25540ad12b20
https://github.com/qemu/qemu/commit/02e0ecb42ccbf750bb60f82c23ef25540ad12b20
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/sparc/sun4m.c
M hw/sparc64/sun4u.c
Log Message:
-----------
hw/sparc: Simplify memory_region_init_ram_nomigrate() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, errp;
@@
- memory_region_init_ram_nomigrate(mr, owner, arg3, arg4, &errp);
if (
- errp
+ !memory_region_init_ram_nomigrate(mr, owner, arg3, arg4, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-23-philmd@linaro.org>
Commit: 7493bd184e35e88317d306e4df030459eefc7ed9
https://github.com/qemu/qemu/commit/7493bd184e35e88317d306e4df030459eefc7ed9
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/misc/ivshmem.c
Log Message:
-----------
hw/misc: Simplify memory_region_init_ram_from_fd() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, arg5, arg6, arg7, errp;
@@
- memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6, arg7,
&errp);
if (
- errp
+ !memory_region_init_ram_from_fd(mr, owner, arg3, arg4, arg5, arg6,
arg7, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-24-philmd@linaro.org>
Commit: ca1b8762922f4fa859e082898ca567c2cc0269ca
https://github.com/qemu/qemu/commit/ca1b8762922f4fa859e082898ca567c2cc0269ca
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/nvram/nrf51_nvm.c
Log Message:
-----------
hw/nvram: Simplify memory_region_init_rom_device() calls
Mechanical change using the following coccinelle script:
@@
expression mr, owner, arg3, arg4, arg5, arg6, errp;
@@
- memory_region_init_rom_device(mr, owner, arg3, arg4, arg5, arg6, &errp);
if (
- errp
+ !memory_region_init_rom_device(mr, owner, arg3, arg4, arg5, arg6, &errp)
) {
...
return;
}
and removing the local Error variable.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-25-philmd@linaro.org>
Commit: cb50fc6842bf95b4e3bc1faa2a56bf7987ea6491
https://github.com/qemu/qemu/commit/cb50fc6842bf95b4e3bc1faa2a56bf7987ea6491
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/pci-host/raven.c
Log Message:
-----------
hw/pci-host/raven: Propagate error in raven_realize()
When an Error** reference is available, it is better to
propagate local errors, rather then using generic ones,
which might terminate the whole QEMU process.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-26-philmd@linaro.org>
Commit: 5e077a77670d36975cc0dc885d2e9d9f67ab14c1
https://github.com/qemu/qemu/commit/5e077a77670d36975cc0dc885d2e9d9f67ab14c1
Author: Thomas Huth <huth@tuxfamily.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/m68k/mcf5206.c
Log Message:
-----------
hw/m68k/mcf5206: Embed m5206_timer_state in m5206_mbar_state
There's no need to explicitely allocate the memory here, we can
simply embed it into the m5206_mbar_state instead.
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231221122939.11001-1-huth@tuxfamily.org>
Commit: 25145a7d7735344a469551946fc2a7f19eb4aa3d
https://github.com/qemu/qemu/commit/25145a7d7735344a469551946fc2a7f19eb4aa3d
Author: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/net/can/can_sja1000.c
Log Message:
-----------
hw/net/can/sja1000: fix bug for single acceptance filter and standard frame
A CAN sja1000 standard frame filter mask has been computed and applied
incorrectly for standard frames when single Acceptance Filter Mode
(MOD_AFM = 1) has been selected. The problem has not been found
by Linux kernel testing because it uses dual filter mode (MOD_AFM = 0)
and leaves falters fully open.
The problem has been noticed by Grant Ramsay when testing with Zephyr
RTOS which uses single filter mode.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Reported-by: Grant Ramsay <gramsay@enphaseenergy.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2028
Fixes: 733210e754 ("hw/net/can: SJA1000 chip register level emulation")
Message-ID: <20240103231426.5685-1-pisa@fel.cvut.cz>
Commit: a318da6b3f6a88e6cfd6953c519def9457e8962f
https://github.com/qemu/qemu/commit/a318da6b3f6a88e6cfd6953c519def9457e8962f
Author: Clément Chigot <chigot@adacore.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M hw/sparc/leon3.c
M target/sparc/cpu.h
M target/sparc/int32_helper.c
Log Message:
-----------
target/sparc: Simplify qemu_irq_ack
This is a simple cleanup, since env is passed to qemu_irq_ack it can be
accessed from inside qemu_irq_ack. Just drop this parameter.
Co-developed-by: Frederic Konrad <konrad.frederic@yahoo.fr>
Signed-off-by: Clément Chigot <chigot@adacore.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240105102421.163554-7-chigot@adacore.com>
Commit: 0c1eccd368af8805ec0fb11e6cf25d0684d37328
https://github.com/qemu/qemu/commit/0c1eccd368af8805ec0fb11e6cf25d0684d37328
Author: Peter Maydell <peter.maydell@linaro.org>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M backends/hostmem-epc.c
M backends/hostmem-file.c
M backends/hostmem-memfd.c
M backends/hostmem-ram.c
M backends/hostmem.c
M bsd-user/main.c
M cpu-target.c
M hw/arm/armsse.c
M hw/arm/armv7m.c
M hw/arm/aspeed_ast2400.c
M hw/arm/aspeed_ast2600.c
M hw/arm/bananapi_m2u.c
M hw/arm/bcm2836.c
M hw/arm/cubieboard.c
M hw/arm/fsl-imx25.c
M hw/arm/fsl-imx31.c
M hw/arm/fsl-imx6.c
M hw/arm/integratorcp.c
M hw/arm/mps2-tz.c
M hw/arm/mps2.c
M hw/arm/msf2-som.c
M hw/arm/musca.c
M hw/arm/npcm7xx_boards.c
M hw/arm/nrf51_soc.c
M hw/arm/orangepi.c
M hw/arm/sbsa-ref.c
M hw/arm/virt.c
M hw/audio/sb16.c
M hw/core/cpu-common.c
M hw/core/machine.c
M hw/cpu/cluster.c
M hw/cpu/core.c
M hw/m68k/mcf5206.c
M hw/mips/cps.c
M hw/mips/jazz.c
M hw/mips/malta.c
M hw/mips/mipssim.c
M hw/misc/ivshmem.c
M hw/net/can/can_sja1000.c
M hw/nvram/nrf51_nvm.c
M hw/pci-host/raven.c
M hw/ppc/e500.c
M hw/ppc/rs6000_mc.c
M hw/ppc/spapr_cpu_core.c
M hw/riscv/shakti_c.c
M hw/sparc/leon3.c
M hw/sparc/sun4m.c
M hw/sparc64/sun4u.c
M hw/virtio/virtio-mem.c
M include/exec/memory.h
M include/hw/boards.h
M include/hw/core/cpu.h
R include/hw/mips/bios.h
M include/hw/ppc/xive2_regs.h
M include/qemu/osdep.h
M include/sysemu/hostmem.h
M linux-user/alpha/target_elf.h
M meson.build
M system/memory.c
M system/vl.c
M target/alpha/cpu.c
M target/alpha/cpu.h
M target/arm/arm-qmp-cmds.c
M target/arm/cpu.c
M target/arm/cpu.h
M target/arm/helper.c
M target/avr/cpu.c
M target/avr/cpu.h
M target/cris/cpu.c
M target/cris/cpu.h
M target/hexagon/cpu.c
M target/hexagon/cpu.h
M target/hppa/cpu.c
M target/hppa/cpu.h
M target/i386/cpu.c
M target/loongarch/cpu.c
M target/loongarch/cpu.h
M target/loongarch/loongarch-qmp-cmds.c
M target/m68k/cpu.c
M target/m68k/cpu.h
M target/m68k/helper.c
M target/mips/cpu-defs.c.inc
M target/mips/cpu.h
M target/mips/sysemu/mips-qmp-cmds.c
M target/openrisc/cpu.c
M target/openrisc/cpu.h
M target/ppc/cpu_init.c
M target/ppc/ppc-qmp-cmds.c
M target/riscv/cpu.c
M target/riscv/cpu.h
M target/riscv/riscv-qmp-cmds.c
M target/rx/cpu.c
M target/rx/cpu.h
M target/sh4/cpu.c
M target/sh4/cpu.h
M target/sparc/cpu.h
M target/sparc/int32_helper.c
M target/tricore/cpu.c
M target/tricore/cpu.h
M target/tricore/helper.c
M target/xtensa/cpu.c
M target/xtensa/cpu.h
M target/xtensa/helper.c
M util/oslib-posix.c
M util/oslib-win32.c
Log Message:
-----------
Merge tag 'hw-cpus-20240105' of https://github.com/philmd/qemu into staging
HW core patch queue
- Unify CPU QOM type checks (Gavin)
- Simplify uses of some CPU related property (Philippe)
(start-powered-off, ARM reset-cbar and mp-affinity)
- Header and documentation cleanups (Zhao, Philippe)
- Have Memory API return boolean indicating possible error
- Fix frame filter mask in CAN sja1000 model (Pavel)
- QOM embed MCF5206 timer into SoC (Thomas)
- Simplify LEON3 qemu_irq_ack handler (Clément)
# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmWYIxwACgkQ4+MsLN6t
# wN66fA//UBwgYqcdpg6Wz17qzgq1TWeZHHzYh7HbZRUCxhdSgS6TSQOH9Fi8VNYq
# Ed5a5l4ovP/2NRN1/S5PPBydyKXTU7wintHm2+suQbLSmplIE6yr0Ca6o8FLEeJ3
# hnE0dAoQCLS7eDpoeOEpGjzmJFiBSWLvyqAZLa/rZkCnCiZRHB6g/nAEM8I3I9bl
# //H20d3a/fektZxGnpEAeoMxrl4iA9hkFYVW8lbu6EhNFBPUkkj5Y8w47Kq/BIvD
# NmLTPgu4d7oahwlfsM6jWdRDG9zlEkXQor817PHwl00o45yAfeITsy40GvJeEYaI
# BcDLFfWrSm9SQb7/suXGeyU/SLmx7rsmJWfNYUoMr6807QcSH4ScPCfgzEQ4j8IV
# PmeVsxxLxT9CSzfxhMx5cXt33H2l+tEzwJ5UJCLQvmvTu+aDkt46Q09X/7j0z89m
# zSk/HBtdACIzwEWBAJsKuzarRTZNUvyXEsOxZ5l7xOxJpzpsNV2YVuChClVGtHOJ
# kr1PE2hxEMPY1vDyKU6ckDvW+XXgYhOXrPAxdx8gIwwd4oyDC5vVlIajvlqbOAsp
# Es7zq40b/is3ZnByEDbZ+yYvdYRLtVf/lDPK3KIv7IhrTNzH/HT1egshOQAVirY1
# Gw8f3fXqL3/84w383VI4efrSlKBJeb0i2SJ50y2N1clrF1qnlx0=
# =an4B
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 05 Jan 2024 15:41:16 GMT
# gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
# gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>"
[unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE
* tag 'hw-cpus-20240105' of https://github.com/philmd/qemu: (71 commits)
target/sparc: Simplify qemu_irq_ack
hw/net/can/sja1000: fix bug for single acceptance filter and standard frame
hw/m68k/mcf5206: Embed m5206_timer_state in m5206_mbar_state
hw/pci-host/raven: Propagate error in raven_realize()
hw/nvram: Simplify memory_region_init_rom_device() calls
hw/misc: Simplify memory_region_init_ram_from_fd() calls
hw/sparc: Simplify memory_region_init_ram_nomigrate() calls
hw/arm: Simplify memory_region_init_rom() calls
hw: Simplify memory_region_init_ram() calls
misc: Simplify qemu_prealloc_mem() calls
util/oslib: Have qemu_prealloc_mem() handler return a boolean
backends: Reduce variable scope in host_memory_backend_memory_complete
backends: Have HostMemoryBackendClass::alloc() handler return a boolean
backends: Simplify host_memory_backend_memory_complete()
backends: Use g_autofree in HostMemoryBackendClass::alloc() handlers
memory: Have memory_region_init_ram_from_fd() handler return a boolean
memory: Have memory_region_init_ram_from_file() handler return a boolean
memory: Have memory_region_init_resizeable_ram() return a boolean
memory: Have memory_region_init_rom_device() handler return a boolean
memory: Simplify memory_region_init_rom_device_nomigrate() calls
...
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Compare: https://github.com/qemu/qemu/compare/c8193acc078e...0c1eccd368af
- [Qemu-commits] [qemu/qemu] bf9643: meson: Allow building binary with no target-specif...,
Peter Maydell <=