[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openrisc] PC as GPR?
(List ate my email - this is a resend.)
Is there a specific reason why the PC is not addressable like a general
purpose register (i.e. make r31 be the PC)?
Disadvantage: losing one GPR (not that painful with 32 regs).
Advantages: Jmp becomes an alias for mov, frees one opcode. Computable
branch via add/sub. PC relative addressing for load/store (no base
register needed for position independent code).
And a wishlist item: The architecture manual in PDF form seems not to
be up to date wrt the Word doc, according to CVS. Word stuff is
unwieldy, can a current PDF be generated?
Also, did I miss something from looking over the manual or is there
really no pre-decrement/post-increment addressing mode? Or is the PDF
manual really obsolete?
--
Andreas Bombe <bombe@informatik.tu-muenchen.de> DSA key 0x04880A44
--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml