diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-01-07 11:08:18 +0800 |
|---|---|---|
| committer | Bibo Mao <maobibo@loongson.cn> | 2025-01-15 14:33:49 +0800 |
| commit | 999b112d90be8404547eec0793f8d7c0b5d2a547 (patch) | |
| tree | 4c2c9ddc1f7d5610d25e9bdf47619d23132b0f7c /include/hw/intc | |
| parent | 1b3aa347044966a69e16a821eb44fbc16d0d58c9 (diff) | |
| download | focaccia-qemu-999b112d90be8404547eec0793f8d7c0b5d2a547.tar.gz focaccia-qemu-999b112d90be8404547eec0793f8d7c0b5d2a547.zip | |
hw/intc/loongson_ipi: Add more input parameter for cpu_by_arch_id
Add logic cpu index input parameter for function cpu_by_arch_id, CPUState::cpu_index is logic cpu slot index for possible_cpus. At the same time it is logic index with LoongsonIPICommonState::IPICore, here hide access for CPUState::cpu_index directly, it comes from function cpu_by_arch_id(). Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Diffstat (limited to 'include/hw/intc')
| -rw-r--r-- | include/hw/intc/loongson_ipi_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/intc/loongson_ipi_common.h b/include/hw/intc/loongson_ipi_common.h index 4192f3d548..b587f9c571 100644 --- a/include/hw/intc/loongson_ipi_common.h +++ b/include/hw/intc/loongson_ipi_common.h @@ -46,7 +46,8 @@ struct LoongsonIPICommonClass { DeviceRealize parent_realize; DeviceUnrealize parent_unrealize; AddressSpace *(*get_iocsr_as)(CPUState *cpu); - CPUState *(*cpu_by_arch_id)(int64_t id); + int (*cpu_by_arch_id)(LoongsonIPICommonState *lics, int64_t id, + int *index, CPUState **pcs); }; MemTxResult loongson_ipi_core_readl(void *opaque, hwaddr addr, uint64_t *data, |