Comment 3 for bug 1636126

Revision history for this message
Peter Maydell (pmaydell) wrote :

Hi. This command line:

/opt/qemu-system-arm -M integratorcp -cpu cortex-m3 ...

is wrong. The integratorcp board is not a Cortex-M3 and trying to stick one into it produces something that is not likely to work very well. Please can you either (a) using a board that's expected to support a Cortex-M3, like the lm3s6965evb or lm3s811evb, or (b) using the integratorcp's default CPU if that's what your guest code is supposed to run on. This sort of frankenstein combination is not supported...

That said, your problem here is that the SMULBB instruction is part of the M profile DSP extension, which is not implemented in the Cortex-M3 (it first appears in the -M4). Not UNDEFing on the DSP instructions in our Cortex-M3 model was a bug in QEMU v2.2 which we have subsequently fixed.

You should build your guest code to target the CPU you're trying to run it on.