[PATCH] opcodes/ppc-opc.c: Add dscr and ctrl SPR mnemonics
Anton Blanchard
anton@samba.org
Wed Sep 9 21:33:00 GMT 2015
Hi Peter,
> Please move this above the mftid pattern above it. We like to have it
> ordered with newer instructions listed first, so if you use -many in
> your assembler options, we'll use mfdscr instead of mftid.
Thanks, will do.
> Is there a typo in the ISA documentation with the associated SPR
> numbers? All other m[tf]spr instructions use the same SPR number for
> both the mtspr and mfspr instructions, except this one.
It's the privileged vs non privileged SPR split. Bit 4 (counting from
the LSb, not IBM bit) determines this. SPR 136 is non privileged and
152 is privileged. Confusing, but thankfully only a few SPRs have this
split (PMCs being another).
Anton
More information about the Binutils
mailing list