mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
1b3aa34704
commit
999b112d90
4 changed files with 51 additions and 15 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue