target/mips: Add emulation of nanoMIPS 16-bit save and restore instructions
commitbf0718c59a4b27dd01346a7b5b9a183ed1b18fb7
authorStefan Markovic <smarkovic@wavecomp.com>
Thu, 2 Aug 2018 14:15:54 +0000 (2 16:15 +0200)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Fri, 24 Aug 2018 15:51:59 +0000 (24 17:51 +0200)
tree567410f4c47f054e5e8792185ee28c7a39b80379
parent80845edf37bac0c1e8d378046bd2b741e4deefc8
target/mips: Add emulation of nanoMIPS 16-bit save and restore instructions

Add emulation of SAVE16 and RESTORE.JRC16 instructions. Routines
gen_save(), gen_restore(), and gen_adjust_sp() are provided to support
this feature.

This patch at the same time provides function gen_op_addr_addi(). This
function will be used in emulation of some other nanoMIPS instructions.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Yongbok Kim <yongbok.kim@mips.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
target/mips/translate.c