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]

[PATCH 2/3] sparc: Change software trap amd mov handling


Hi all,

Please find attached a patch to change the software trap and mov instruction handling into line with the V8 SPARC Architecture Manual.

wr instructions are also updated to match the changes to the mov instructions.

The V8 manual has an extra software_tarp# mode not handled by gas:
 imm7 + regrs1

Synthetic instruction changes:
 GAS uses 'wr regrs1, %g0, regrd' and 'wr %g0, imm, regrd'
 for 'mov imm_reg, regrd'.
 The V8 manual uses 'wr %g0, imm_regrs2, regrd'
 for 'mov imm_reg, regrd'.
Change the behaviour to match the V8 manual.

Regards
	Mark Fortescue.

PS: Sorry the patch is attached. My mail client mangles in-text patches.

Attachment: SparcGasFix2-V8Changes.diff
Description: Text document


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