diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-23 10:19:44 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
| commit | a86cf967a1afe8ccbf58d34983816bc2985d65d2 (patch) | |
| tree | 2e4ae9211791830a77e75adb0fc1cf5e81167ac1 /hw/core/cpu-user.c | |
| parent | e3a575f5609569400da628d384b32f5e3cf58745 (diff) | |
| download | focaccia-qemu-a86cf967a1afe8ccbf58d34983816bc2985d65d2.tar.gz focaccia-qemu-a86cf967a1afe8ccbf58d34983816bc2985d65d2.zip | |
cpus: Have cpu_exec_initfn() per user / system emulation
Slighly simplify cpu-target.c again by extracting cpu_exec_initfn()
to cpu-{system,user}.c, adding an empty stub for user emulation.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250123234415.59850-19-philmd@linaro.org>
Diffstat (limited to 'hw/core/cpu-user.c')
| -rw-r--r-- | hw/core/cpu-user.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/cpu-user.c b/hw/core/cpu-user.c index e5ccf6bf13..cdd8de2fef 100644 --- a/hw/core/cpu-user.c +++ b/hw/core/cpu-user.c @@ -25,3 +25,8 @@ void cpu_class_init_props(DeviceClass *dc) { device_class_set_props(dc, cpu_user_props); } + +void cpu_exec_initfn(CPUState *cpu) +{ + /* nothing to do */ +} |