diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-12 21:15:30 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-31 19:36:43 +0100 |
| commit | 61f6e494e3ee060c92491d8df9315e4fdf590864 (patch) | |
| tree | b491d1817d9dc08942903ef423f08c4ab3122ed0 /hw/mips/loongson3_bootp.h | |
| parent | ce6768965b5713c353097d362f712e2bca1ef354 (diff) | |
| download | focaccia-qemu-61f6e494e3ee060c92491d8df9315e4fdf590864.tar.gz focaccia-qemu-61f6e494e3ee060c92491d8df9315e4fdf590864.zip | |
hw/mips/loongson3: Propagate cpu_count to init_loongson_params()
Propagate the %cpu_count from the machine file, allowing to remove the "hw/boards.h" dependency (which is machine specific) from loongson3_bootp. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250115232952.31166-7-philmd@linaro.org>
Diffstat (limited to 'hw/mips/loongson3_bootp.h')
| -rw-r--r-- | hw/mips/loongson3_bootp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/mips/loongson3_bootp.h b/hw/mips/loongson3_bootp.h index 9091265df7..ee6340e42c 100644 --- a/hw/mips/loongson3_bootp.h +++ b/hw/mips/loongson3_bootp.h @@ -233,6 +233,7 @@ enum { extern const MemMapEntry virt_memmap[]; void init_loongson_params(struct loongson_params *lp, void *p, + uint32_t cpu_count, uint64_t cpu_freq, uint64_t ram_size); void init_reset_system(struct efi_reset_system_t *reset); |