[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/9] hw/riscv/sifive_e: Fix inheritance of SiFiveEState
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 1/9] hw/riscv/sifive_e: Fix inheritance of SiFiveEState |
Date: |
Wed, 21 Sep 2022 06:55:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Bernhard Beschow <shentey@gmail.com> writes:
> Am 20. September 2022 11:36:47 UTC schrieb Markus Armbruster
> <armbru@redhat.com>:
>>Alistair Francis <alistair23@gmail.com> writes:
>>
>>> On Tue, Sep 20, 2022 at 9:18 AM Bernhard Beschow <shentey@gmail.com> wrote:
>>>>
>>>> SiFiveEState inherits from SysBusDevice while it's TypeInfo claims it to
>>>> inherit from TYPE_MACHINE. This is an inconsistency which can cause
>>>> undefined behavior such as memory corruption.
>>>>
>>>> Change SiFiveEState to inherit from MachineState since it is registered
>>>> as a machine.
>>>>
>>>> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
>>>
>>> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
>>
>>To the SiFive maintainers: since this is a bug fix, let's merge it right
>>away.
>
> I could repost this particular patch with the three new tags (incl. Fixes) if
> desired.
Can't hurt, and could help the maintainers.
- [PATCH 0/9] Deprecate sysbus_get_default() and get_system_memory() et. al, Bernhard Beschow, 2022/09/19
- [PATCH 1/9] hw/riscv/sifive_e: Fix inheritance of SiFiveEState, Bernhard Beschow, 2022/09/19
- [PATCH 2/9] exec/hwaddr.h: Add missing include, Bernhard Beschow, 2022/09/19
- [PATCH 3/9] hw/core/sysbus: Resolve main_system_bus singleton, Bernhard Beschow, 2022/09/19
- [PATCH 4/9] hw/ppc/spapr: Fix code style problems reported by checkpatch, Bernhard Beschow, 2022/09/19
- [PATCH 5/9] exec/address-spaces: Wrap address space singletons into functions, Bernhard Beschow, 2022/09/19