This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] opcodes/ppc-opc.c: Add dscr and ctrl SPR mnemonics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]