For example, I've created a HelloWorld program which has to be executed on a PowerPC CPU. To reach this goal, I first cross-compiled it (thanks to crosstools) with a powerpc-powerpc-linux-gnu TARGET. So, when I use qemu-ppc -cpu MPC8270 it works, but just because it's running on Linux. I just want a program being sure that it runs only on a PowerPC CPU.