[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tricore default machine (was: [PATCH v4 1/3] hw: Do not initialize Machi
From: |
Thomas Huth |
Subject: |
Tricore default machine (was: [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0) |
Date: |
Mon, 10 Feb 2020 10:35:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 07/02/2020 17.19, Philippe Mathieu-Daudé wrote:
> The MachineClass is already zeroed on creation.
>
> Note: The code setting is_default=0 in hw/i386/pc_piix.c is
> different (related to compat options). When adding a
> new versioned machine, we want it to be the new default,
> so we have to mark the previous one as not default.
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> v3: new patch
> ---
> hw/lm32/lm32_boards.c | 1 -
> hw/lm32/milkymist.c | 1 -
> hw/m68k/q800.c | 1 -
> hw/microblaze/petalogix_ml605_mmu.c | 1 -
> hw/tricore/tricore_testboard.c | 1 -
> 5 files changed, 5 deletions(-)
[...]
> diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboard.c
> index 20c9ccb3ce..8ec2b5bddd 100644
> --- a/hw/tricore/tricore_testboard.c
> +++ b/hw/tricore/tricore_testboard.c
> @@ -105,7 +105,6 @@ static void ttb_machine_init(MachineClass *mc)
> {
> mc->desc = "a minimal TriCore board";
> mc->init = tricoreboard_init;
> - mc->is_default = 0;
> mc->default_cpu_type = TRICORE_CPU_TYPE_NAME("tc1796");
> }
I wonder whether we should simply make that machine the default for
qemu-system-tricore? There is only one machine here, and not having a
default machine always causes some headaches in the tests...
(see e.g. tests/qemu-iotests/check for example)
Thomas
- [PATCH v4 0/3] Make MachineClass::is_default boolean, refuse multiple default machines, Philippe Mathieu-Daudé, 2020/02/07
- [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0, Philippe Mathieu-Daudé, 2020/02/07
- Re: [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0, Laurent Vivier, 2020/02/07
- Re: [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0, David Gibson, 2020/02/08
- Tricore default machine (was: [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0),
Thomas Huth <=
- Re: Tricore default machine, Philippe Mathieu-Daudé, 2020/02/10
- Re: Tricore default machine, Thomas Huth, 2020/02/10
- Re: Tricore default machine, Bastian Koppelmann, 2020/02/10
- Re: Tricore default machine, Peter Maydell, 2020/02/10
- Re: Tricore default machine, Philippe Mathieu-Daudé, 2020/02/10
[PATCH v4 2/3] hw: Make MachineClass::is_default a boolean type, Philippe Mathieu-Daudé, 2020/02/07