target-mips: add gen_base_offset_addr
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 8 Dec 2009 18:01:01 +0000 (10:01 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Dec 2009 19:20:19 +0000 (20:20 +0100)
commit88c6dbd8525fdafa1c480eb2769fc27c5654c917
tree246cd7bded9bed15589235d65bd9fc03a14db903
parentfa219d62b80b66e2c9dc758613adffda9fc20202
target-mips: add gen_base_offset_addr

This is a common pattern in existing code.  We'll also use it to
implement the mips16 SAVE/RESTORE instructions.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c