On Mon, 9 Dec 2024 at 23:33, Pavel Pisa <[email protected]> wrote: > our CTU CAN FD IP core is used on many FPGA platforms > and has been even tapeout on some other university > and even prototypes of the massive production chips > (support for that organized by our former student > in his company). > > But actual QEMU emulation targets only PCI/PCIe mapping in > > hw/net/can/ctucan_pci.c > > of the core in > > hw/net/can/ctucan_core.c > > I would like to add support to map the core at fixed position for > SoCs and command line controlled location for FPGA targets.
Command line instantiation of devices at command line controlled addresses and with command line connection of IRQ lines is basically something we do not currently support. There is some prototype/design work going on about generic "create a machine from the command line" handling, which would inevitably involve allowing the user to specify addresses and IRQ lines. But I don't really want to see ad-hoc device-specific additions of small parts of similar functionality. If there's a SoC that QEMU models that has this CAN controller, then it's the SoC model (written in C) that defines where it is mapped in memory and what IRQ lines it is wired up to. thanks -- PMM
