* [PULL 0/1] M68k for 9.0 patches
@ 2024-03-11 17:54 Laurent Vivier
2024-03-11 17:54 ` [PULL 1/1] virt: set the CPU type in BOOTINFO Laurent Vivier
2024-03-12 11:05 ` [PULL 0/1] M68k for 9.0 patches Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Laurent Vivier @ 2024-03-11 17:54 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
The following changes since commit 7489f7f3f81dcb776df8c1b9a9db281fc21bf05f:
Merge tag 'hw-misc-20240309' of https://github.com/philmd/qemu into staging (2024-03-09 20:12:21 +0000)
are available in the Git repository at:
https://github.com/vivier/qemu-m68k.git tags/m68k-for-9.0-pull-request
for you to fetch changes up to e39a0809b99bbbe5f0ec432fdd9e8c943ba24936:
virt: set the CPU type in BOOTINFO (2024-03-11 09:38:08 +0100)
----------------------------------------------------------------
Pull request for m68k 20240311
----------------------------------------------------------------
Laurent Vivier (1):
virt: set the CPU type in BOOTINFO
hw/m68k/virt.c | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
--
2.43.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL 1/1] virt: set the CPU type in BOOTINFO
2024-03-11 17:54 [PULL 0/1] M68k for 9.0 patches Laurent Vivier
@ 2024-03-11 17:54 ` Laurent Vivier
2024-03-12 11:05 ` [PULL 0/1] M68k for 9.0 patches Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2024-03-11 17:54 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier, Daniel Palmer, Mark Cave-Ayland
BI_CPUTYPE/BI_MMUTYPE/BI_FPUTYPE were statically assigned to the
68040 information.
This patch changes the code to set in bootinfo the information
provided by the command line '-cpu' parameter.
Bug: https://gitlab.com/qemu-project/qemu/-/issues/2091
Reported-by: Daniel Palmer <daniel@0x0f.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-ID: <20240223155742.2790252-1-laurent@vivier.eu>
---
hw/m68k/virt.c | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/hw/m68k/virt.c b/hw/m68k/virt.c
index e2792ef46d93..b8e5e102e6b9 100644
--- a/hw/m68k/virt.c
+++ b/hw/m68k/virt.c
@@ -239,9 +239,20 @@ static void virt_init(MachineState *machine)
param_ptr = param_blob;
BOOTINFO1(param_ptr, BI_MACHTYPE, MACH_VIRT);
- BOOTINFO1(param_ptr, BI_FPUTYPE, FPU_68040);
- BOOTINFO1(param_ptr, BI_MMUTYPE, MMU_68040);
- BOOTINFO1(param_ptr, BI_CPUTYPE, CPU_68040);
+ if (m68k_feature(&cpu->env, M68K_FEATURE_M68020)) {
+ BOOTINFO1(param_ptr, BI_CPUTYPE, CPU_68020);
+ } else if (m68k_feature(&cpu->env, M68K_FEATURE_M68030)) {
+ BOOTINFO1(param_ptr, BI_MMUTYPE, MMU_68030);
+ BOOTINFO1(param_ptr, BI_CPUTYPE, CPU_68030);
+ } else if (m68k_feature(&cpu->env, M68K_FEATURE_M68040)) {
+ BOOTINFO1(param_ptr, BI_FPUTYPE, FPU_68040);
+ BOOTINFO1(param_ptr, BI_MMUTYPE, MMU_68040);
+ BOOTINFO1(param_ptr, BI_CPUTYPE, CPU_68040);
+ } else if (m68k_feature(&cpu->env, M68K_FEATURE_M68060)) {
+ BOOTINFO1(param_ptr, BI_FPUTYPE, FPU_68060);
+ BOOTINFO1(param_ptr, BI_MMUTYPE, MMU_68060);
+ BOOTINFO1(param_ptr, BI_CPUTYPE, CPU_68060);
+ }
BOOTINFO2(param_ptr, BI_MEMCHUNK, 0, ram_size);
BOOTINFO1(param_ptr, BI_VIRT_QEMU_VERSION,
--
2.43.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL 0/1] M68k for 9.0 patches
2024-03-11 17:54 [PULL 0/1] M68k for 9.0 patches Laurent Vivier
2024-03-11 17:54 ` [PULL 1/1] virt: set the CPU type in BOOTINFO Laurent Vivier
@ 2024-03-12 11:05 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2024-03-12 11:05 UTC (permalink / raw)
To: Laurent Vivier; +Cc: qemu-devel
On Mon, 11 Mar 2024 at 17:55, Laurent Vivier <laurent@vivier.eu> wrote:
>
> The following changes since commit 7489f7f3f81dcb776df8c1b9a9db281fc21bf05f:
>
> Merge tag 'hw-misc-20240309' of https://github.com/philmd/qemu into staging (2024-03-09 20:12:21 +0000)
>
> are available in the Git repository at:
>
> https://github.com/vivier/qemu-m68k.git tags/m68k-for-9.0-pull-request
>
> for you to fetch changes up to e39a0809b99bbbe5f0ec432fdd9e8c943ba24936:
>
> virt: set the CPU type in BOOTINFO (2024-03-11 09:38:08 +0100)
>
> ----------------------------------------------------------------
> Pull request for m68k 20240311
>
> ----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-12 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-11 17:54 [PULL 0/1] M68k for 9.0 patches Laurent Vivier
2024-03-11 17:54 ` [PULL 1/1] virt: set the CPU type in BOOTINFO Laurent Vivier
2024-03-12 11:05 ` [PULL 0/1] M68k for 9.0 patches Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).