summary refs log tree commit diff stats
path: root/target/mips/helper.h
diff options
context:
space:
mode:
authorMatthew Fortune <matthew.fortune@mips.com>2018-08-02 16:16:20 +0200
committerAleksandar Markovic <amarkovic@wavecomp.com>2018-08-24 17:51:59 +0200
commite222f5067269392af489731221750976d0cf3c05 (patch)
treeb70b3b0cef619b90c36561db6281fa9c7cf7f6c3 /target/mips/helper.h
parenteac5266459fb83e70fbf33f95c7c846f89df5c6a (diff)
downloadfocaccia-qemu-e222f5067269392af489731221750976d0cf3c05.tar.gz
focaccia-qemu-e222f5067269392af489731221750976d0cf3c05.zip
target/mips: Implement emulation of nanoMIPS ROTX instruction
Added a helper for ROTX based on the pseudocode from the
architecture spec. This instraction was not present in previous
MIPS instruction sets.

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>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/mips/helper.h')
-rw-r--r--target/mips/helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/mips/helper.h b/target/mips/helper.h
index 5f492348dd..b2a780a6f2 100644
--- a/target/mips/helper.h
+++ b/target/mips/helper.h
@@ -40,6 +40,8 @@ DEF_HELPER_FLAGS_1(bitswap, TCG_CALL_NO_RWG_SE, tl, tl)
 DEF_HELPER_FLAGS_1(dbitswap, TCG_CALL_NO_RWG_SE, tl, tl)
 #endif
 
+DEF_HELPER_FLAGS_4(rotx, TCG_CALL_NO_RWG_SE, tl, tl, i32, i32, i32)
+
 #ifndef CONFIG_USER_ONLY
 /* CP0 helpers */
 DEF_HELPER_1(mfc0_mvpcontrol, tl, env)