Compile error for multi core in CORTEX_MPS2_QEMU_IAR_GCC

Depends on which hardware you are using. If you are using Cortex-M3 (assuming it because you mentioned CORTEX_MPS2_QEMU_IAR_GCC project), then you need to write SMP port for Cortex-M3. The following post has a good SMP porting checklist: SMP Porting Checklist - A53 *4 as reference.

If you are not tied to a specific hardware and want to try out SMP, you can use any of the following 2 hardware:

  1. XMOS XCORE AI
  2. Raspberry Pi Pico