[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/5] hw/core: Only build CPU reset handlers with system emula
From: |
Peter Maydell |
Subject: |
Re: [PATCH 5/5] hw/core: Only build CPU reset handlers with system emulation |
Date: |
Tue, 20 Dec 2022 15:52:15 +0000 |
On Tue, 20 Dec 2022 at 14:56, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> In user emulation, threads -- implemented as CPU -- are
> created/destroyed, but never reset. There is no point in
> providing the sysemu/reset handlers there.
We do reset the CPU, the linux-user code calls
cpu_reset() after creating it (and this is required for
correct behaviour). What we don't need (and what this patch
is making system-only) is the "register a global reset
function" API (which is non-functional in user-mode binaries
because nothing ever calls the qemu_devices_reset() function
to say "run all the hooks", so it makes sense not to compile
it in).
thanks
-- PMM
- [PATCH 0/5] cpus: Remove system reset() API from user emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 1/5] target/i386: Restrict qapi/qapi-events-run-state.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 2/5] target/i386: Restrict sysemu/reset.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 3/5] target/loongarch: Restrict sysemu/reset.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 4/5] target/s390x: Restrict sysemu/reset.h to system emulation, Philippe Mathieu-Daudé, 2022/12/20
- [PATCH 5/5] hw/core: Only build CPU reset handlers with system emulation, Philippe Mathieu-Daudé, 2022/12/20
- Re: [PATCH 5/5] hw/core: Only build CPU reset handlers with system emulation,
Peter Maydell <=
- Re: [PATCH 0/5] cpus: Remove system reset() API from user emulation, Richard Henderson, 2022/12/20
- Re: [PATCH 0/5] cpus: Remove system reset() API from user emulation, Wilfred Mallawa, 2022/12/20