Allow mfspr, mtspr with a register number.
authorGeorge Koehler <xkernigh@netscape.net>
Wed, 7 Dec 2016 22:28:00 +0000 (17:28 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Wed, 7 Dec 2016 22:28:00 +0000 (17:28 -0500)
commitb8c921ca70c17a51b74e39d11974e130c32ed409
tree505d336c27803b9687ad1f57bdf9685ce201879d
parent97acc7bcad03aef2292ffed24607e4330118cd80
Allow mfspr, mtspr with a register number.

PowerPC has a few hundred special-purpose registers.  The assembler
had only accepted the names "xer", "lr", "ctr".  Most programs use
only those three SPRs.  If I add more names, they would almost never
get used, and they might conflict with labels.

I want to use "mfspr r3, 0x3f0" and "mtspr 0x3f0, r3" in
plat/qemu/boot.s to access register hid0 from supervisor mode.
mach/powerpc/as/mach2.c
mach/powerpc/as/mach4.c