title: Any PowerPC simulator suggestions?
body: <p><br />
  I'm about to start learning PowerPC architecture and as an example of I've downloaded some reference manuals from NXP website as well as theirs SDK so I can build even bareboard applications. To be precise I'm using virtual host environment. I don't have any board with PowerPC processor on it so I would like to use a simulator for debugging.<br />
  At this step I'm a little confused. So, I've built an bareboard application (a 'Hello World' one). And now I'd like to run it with simulator. I've tried to use a command like this: <code>qemu-system-ppc -machine ppce500 -cpu e500v2 -nographic -kernel ./a.out</code> and saw nothing. The <code>qemu</code> just loads host CPU. <code>./a.out</code> is the binary built with command <code>$CC -static ./tst.c</code>. So, now I don't even know how to deal with <code>qemu</code>.<br />
  For those, who would like to help: I'm using Virtual Host environment for Freescale P1010 processor with e500v2 core, the binary was built with theirs <code>fsl-*</code> utilities.</p>
  
  <p>The source compiled was:</p>
  
  <pre><code>$ cat ./tst.c
  #include &lt;unistd.h&gt;
  #define STRING "This is a test.\n"
  int main(void) {
      write(1, STRING, sizeof(STRING) - 1);
      return 0;
  }
  </code></pre>
  
  <p>Compilation took place like:</p>
  
  <pre><code>$ echo $CC
  powerpc-fsl-linux-gnuspe-gcc -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=/opt/fsl-qoriq/1.9/sysroots/ppce500v2-fsl-linux-gnuspe
  $ $CC -static -o tst.bin ./tst.c
  $ file ./tst.bin
  ./tst.bin: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=63b307e7afe9de0b2781f2f92b5f1b3a803f850d, not stripped
  </code></pre>