@@ -6,3 +6,9 @@
#
# Reference: nanoMIPS32 Instruction Set Technical Reference Manual
# (Document Number: MD01247)
+
+&r rs rt rd sa
+
+@lsa ...... rt:5 rs:5 rd:5 sa:2 --- ... ... &r
+
+LSA 001000 ..... ..... ..... .. ... 001 111 @lsa
@@ -13,3 +13,10 @@
#include "decode-nanomips16.c.inc"
#include "decode-nanomips32.c.inc"
#include "decode-nanomips48.c.inc"
+
+static bool trans_LSA(DisasContext *ctx, arg_r *a)
+{
+ gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
+
+ return true;
+}
@@ -399,7 +399,6 @@ enum {
/* POOL32A7 instruction pool */
enum {
NM_P_LSX = 0x00,
- NM_LSA = 0x01,
NM_EXTW = 0x03,
NM_POOL32AXF = 0x07,
};
@@ -3625,9 +3624,6 @@ static int decode_nanomips_32_48_opc(CPUMIPSState *env, DisasContext *ctx)
case NM_P_LSX:
gen_p_lsx(ctx, rd, rs, rt);
break;
- case NM_LSA:
- gen_lsa(ctx, rd, rt, rs, extract32(ctx->opcode, 9, 2));
- break;
case NM_EXTW:
gen_ext(ctx, 32, rd, rs, rt, extract32(ctx->opcode, 6, 5));
break;