ilg-archived / qemu

The GNU MCU Eclipse QEMU
http://gnuarmeclipse.github.io/qemu/
Other
205 stars 78 forks source link

Fix a few 'Defined but not used' errors. #30

Closed chris-stones closed 7 years ago

chris-stones commented 7 years ago

target-arm/cpu.c fails to compile with multiple 'defined but not used' errors when building on Arch GNU/Linux with GCC-6.2.1 ../configure --python=/usr/bin/python2 --target-list=arm-softmmu

ilg-ul commented 7 years ago

thank you, but I'm a bit confused, does GNU ARM Eclipse build this target?

chris-stones commented 7 years ago

It does if you also have arm-softmmu in the target list. A project of my own uses both cortex-m0 and cortex-a15, so this is useful to me. Feel free to reject this merge if that is outside of the scope of this fork.

Note: this doesnt fully fix the build for arm-softmmu... there are still link errors. I will be playing witht his more at a future date.

Thanks.

ilg-ul commented 7 years ago

A project of my own uses both cortex-m0 and cortex-a15

you want a single executable to run both? I'm not sure this is possible, since configuring for GNU ARM Eclipse disables lots of conflicting Cortex-A functionalities.

chris-stones commented 7 years ago

Ahh. That may explain my linker errors! I was trying to get bin/qemu-system-arm and bin/qemu-system-gnuarmeclipse from the same source package. Thank you.

ilg-ul commented 7 years ago

I was trying to get bin/qemu-system-arm and bin/qemu-system-gnuarmeclipse from the same source package.

building the original qemu-system-arm from the GNU ARM Eclipse QEMU sources should be perfectly possible, all my changes are conditionally included, so the original code is preserved.

just that you have to do two separate builds, in separate folders, with separate configure.

at least in theory...