* [PATCH] z2: Make providing flash images non-mandatory
@ 2020-02-17 21:09 Guenter Roeck
2020-02-18 6:37 ` Philippe Mathieu-Daudé
2020-02-18 16:13 ` Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Guenter Roeck @ 2020-02-17 21:09 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-arm, qemu-devel, Guenter Roeck
Up to now, the z2 machine only boots if a flash image is provided.
This is not really necessary; the machine can boot from initrd or from
SD without it. At the same time, having to provide dummy flash images
is a nuisance and does not add any real value. Make it optional.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
hw/arm/z2.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/hw/arm/z2.c b/hw/arm/z2.c
index 34794fe3ae..4bb237f22d 100644
--- a/hw/arm/z2.c
+++ b/hw/arm/z2.c
@@ -314,12 +314,6 @@ static void z2_init(MachineState *machine)
be = 0;
#endif
dinfo = drive_get(IF_PFLASH, 0, 0);
- if (!dinfo && !qtest_enabled()) {
- error_report("Flash image must be given with the "
- "'pflash' parameter");
- exit(1);
- }
-
if (!pflash_cfi01_register(Z2_FLASH_BASE, "z2.flash0", Z2_FLASH_SIZE,
dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
sector_len, 4, 0, 0, 0, 0, be)) {
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] z2: Make providing flash images non-mandatory
2020-02-17 21:09 [PATCH] z2: Make providing flash images non-mandatory Guenter Roeck
@ 2020-02-18 6:37 ` Philippe Mathieu-Daudé
2020-02-18 16:13 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-02-18 6:37 UTC (permalink / raw)
To: Guenter Roeck, Peter Maydell; +Cc: qemu-arm, qemu-devel
On 2/17/20 10:09 PM, Guenter Roeck wrote:
> Up to now, the z2 machine only boots if a flash image is provided.
> This is not really necessary; the machine can boot from initrd or from
> SD without it. At the same time, having to provide dummy flash images
> is a nuisance and does not add any real value. Make it optional.
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> hw/arm/z2.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/hw/arm/z2.c b/hw/arm/z2.c
> index 34794fe3ae..4bb237f22d 100644
> --- a/hw/arm/z2.c
> +++ b/hw/arm/z2.c
> @@ -314,12 +314,6 @@ static void z2_init(MachineState *machine)
> be = 0;
> #endif
> dinfo = drive_get(IF_PFLASH, 0, 0);
> - if (!dinfo && !qtest_enabled()) {
> - error_report("Flash image must be given with the "
> - "'pflash' parameter");
> - exit(1);
> - }
> -
> if (!pflash_cfi01_register(Z2_FLASH_BASE, "z2.flash0", Z2_FLASH_SIZE,
> dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
> sector_len, 4, 0, 0, 0, 0, be)) {
>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] z2: Make providing flash images non-mandatory
2020-02-17 21:09 [PATCH] z2: Make providing flash images non-mandatory Guenter Roeck
2020-02-18 6:37 ` Philippe Mathieu-Daudé
@ 2020-02-18 16:13 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2020-02-18 16:13 UTC (permalink / raw)
To: Guenter Roeck; +Cc: qemu-arm, QEMU Developers
On Mon, 17 Feb 2020 at 21:09, Guenter Roeck <linux@roeck-us.net> wrote:
>
> Up to now, the z2 machine only boots if a flash image is provided.
> This is not really necessary; the machine can boot from initrd or from
> SD without it. At the same time, having to provide dummy flash images
> is a nuisance and does not add any real value. Make it optional.
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> hw/arm/z2.c | 6 ------
> 1 file changed, 6 deletions(-)
Applied to target-arm.next, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-18 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-17 21:09 [PATCH] z2: Make providing flash images non-mandatory Guenter Roeck
2020-02-18 6:37 ` Philippe Mathieu-Daudé
2020-02-18 16:13 ` 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).