Teach qemuppc to halt the cpu on _exit().
authorGeorge Koehler <xkernigh@netscape.net>
Wed, 7 Dec 2016 23:11:12 +0000 (18:11 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Wed, 7 Dec 2016 23:11:12 +0000 (18:11 -0500)
commitd94ea4c508269b6c9ba4f3f4abb25c615acddd60
treefd32d44151f042503d80a71a66f381ef06240a14
parentb8c921ca70c17a51b74e39d11974e130c32ed409
Teach qemuppc to halt the cpu on _exit().

Without this, qemu-system-ppc spins the host cpu until I close its
window.  I assume the default G3 emulation.  The emulator yields the
host cpu if I set certain flags in hid0 then msr.  The hid0 flag can
be any of DOZE, NAP, SLEEP, so I just set all 3.  I encode mfmsr and
mtmsr with .data4, because our assembler doesn't know instructions for
supervisor mode.

Also move some common symbols from .rom to .bss.  Our assembler puts
common symbols in any section.

Also clean up the file.  Delete a comment about linuxppc that is wrong
here.  Delete redundant .extern because .define is the same.
plat/qemuppc/boot.s