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