在2024年6月20日六月 下午8:50,Philippe Mathieu-Daudé写道: [...] > Do you mind posting a patch fixing it? I'll prepare a series tomorrow with your comments on this patch before. Thanks - Jiaxun > >> + hwaddr base = ((hwaddr)node << 44) + virt_memmap[VIRT_IPI].base; >> + base += core * 0x100; >> + qdev_connect_gpio_out(ipi, i, cpu->env.irq[6]); >> + sysbus_mmio_map(SYS_BUS_DEVICE(ipi), i + 2, base); >> + } >> + >> + if (ase_lcsr_available(&MIPS_CPU(cpu)->env)) { >> + MemoryRegion *core_iocsr = g_new(MemoryRegion, 1); >> + g_autofree char *name = g_strdup_printf("core%d_iocsr", i); >> + memory_region_init_alias(core_iocsr, OBJECT(cpu), name, >> + iocsr, 0, UINT32_MAX); >> + memory_region_add_subregion(&MIPS_CPU(cpu)->env.iocsr.mr, >> + 0, core_iocsr); >> + } >> + >> + if (node > 0) { >> continue; /* Only node-0 can be connected to LIOINTC */ >> } >> >> for (ip = 0; ip < 4 ; ip++) { >> - int pin = i * 4 + ip; >> + int pin = core * LOONGSON3_CORE_PER_NODE + ip; >> sysbus_connect_irq(SYS_BUS_DEVICE(liointc), >> pin, cpu->env.irq[ip + 2]); >> } -- - Jiaxun
- [PULL 46/76] hw/ppc: Avoid using Monitor in pnv_xi... Philippe Mathieu-Daudé
- [PULL 27/76] hw/ppc: Avoid using Monitor in xive_t... Philippe Mathieu-Daudé
- [PULL 66/76] hw/s390x: Introduce s390_skeys_get|se... Philippe Mathieu-Daudé
- [PULL 52/76] hw/intc: Introduce x-query-interrupt-... Philippe Mathieu-Daudé
- [PULL 47/76] hw/ppc: Avoid using Monitor in SpaprI... Philippe Mathieu-Daudé
- [PULL 72/76] MAINTAINERS: drop spice+ui maintainer... Philippe Mathieu-Daudé
- [PULL 40/76] hw/ppc: Avoid using Monitor in pnv_ps... Philippe Mathieu-Daudé
- [PULL 71/76] MAINTAINERS: drop virtio-gpu maintain... Philippe Mathieu-Daudé
- [PULL 65/76] hw/mips/loongson3_virt: Wire up loong... Philippe Mathieu-Daudé
- Re: [PULL 65/76] hw/mips/loongson3_virt: Wire... Philippe Mathieu-Daudé
- Re: [PULL 65/76] hw/mips/loongson3_virt: ... Jiaxun Yang
- [PULL 38/76] hw/ppc: Avoid using Monitor in xive_n... Philippe Mathieu-Daudé
- [PULL 75/76] ui+display: rename is_placeholder() -... Philippe Mathieu-Daudé
- [PULL 64/76] hw/intc/loongson_ipi: Replace ipi_get... Philippe Mathieu-Daudé
- [PULL 74/76] stdvga: fix screen blanking Philippe Mathieu-Daudé
- [PULL 56/76] accel/tcg: Make TCGCPUOps::cpu_exec_h... Philippe Mathieu-Daudé
- [PULL 31/76] hw/ppc: Avoid using Monitor in spapr_... Philippe Mathieu-Daudé
- [PULL 32/76] hw/ppc: Avoid using Monitor in spapr_... Philippe Mathieu-Daudé
- [PULL 51/76] hw/intc: Avoid using Monitor in INTER... Philippe Mathieu-Daudé
- [PULL 73/76] ui/cocoa: Use qemu_add_mouse_change_n... Philippe Mathieu-Daudé
- [PULL 07/76] hw/acpi/ich9: Remove dead code relate... Philippe Mathieu-Daudé