About qdp emulator

I’m research about rtems qdp smp V6 gr712, gr740 but, I wanted to test in an SMP environment with an emulator that supports RTEMS QDP SMP, but only one CPU core could be specified.
I used qemu-system-sparc on rtems/bin

Is it not possible to use more than 1 core?

I thought it might be because gr712 is dual core, so I tried it on gr740 and used the emulator on the rtems general distribution, but the same problem occurred.

I haven’t tested SMP on a sparc qemu yet. But it seems that QEMU should support it at least on some targets since 2024: hw/sparc/leon3: implement multiprocessor (d65aba82) · Commits · Stefan Hajnoczi / QEMU · GitLab

Which version of qemu do you use?

I use qemu-system-sparc on RTEMS QDP GR712RC SMP V6
https://rtems-qual.io.esa.int/

I downloaded the SMP and UNI variant of that package. Both don’t contain a qemu-system-sparc binary.

Can you please try a which qemu-system-sparc to find out which binary you are using and a qemu-system-sparc --version to find out the version?

Oh, it seems like the qemu path is not inside rtems. I tried sparc-rtems6-sis, but it only has one core, so I tried qemu, and it seems like the same problem occurred.

QEMU 6.2.1 is from 2021. Like I mentioned above, if I found the right patch above, SMP support for SPARC has been added 2024. So I think you need a newer QEMU. From the release history, I would expect that you need at least a version 9.0.0.

If your distribution doesn’t provide a current QEMU, you can just build one from the sources. Usually QEMU works quite stable in the development versions so I would just use the latest git version.

Does using the latest version of qemu solve the problem?

I would start with reading the SCF. It contains a section with examples which run on SIS. The SIS is included in the package. This simulator supports four processors for the GR740. The LEON3 support for Qemu is not really maintained. TSIM provided by Gaisler is also an option.

omg -gr740 -m 4 is available ty :slight_smile: