On 07/24/2018 10:31 AM, Aleksandar Markovic wrote: > + case NM_SB16: > + { > + int rt = decode_gpr_gpr3_src_store( > + NANOMIPS_EXTRACT_RD(ctx->opcode));
Shadowed variable. > + case NM_SH16: > + { > + int rt = decode_gpr_gpr3_src_store( > + NANOMIPS_EXTRACT_RD(ctx->opcode)); Likewise. > case NM_LWSP16: > + { > + int rt = NANOMIPS_EXTRACT_RD5(ctx->opcode); Likewise. > case NM_LW4X4: > + { > + int rt = (extract32(ctx->opcode, 9, 1) << 3) | > + extract32(ctx->opcode, 5, 3); > + int rs = (extract32(ctx->opcode, 4, 1) << 3) | > + extract32(ctx->opcode, 0, 3); Likewise. > case NM_SW4X4: > + { > + int rt = (extract32(ctx->opcode, 9, 1) << 3) | > + extract32(ctx->opcode, 5, 3); > + int rs = (extract32(ctx->opcode, 4, 1) << 3) | > + extract32(ctx->opcode, 0, 3); Likewise. > case NM_SWSP16: > + { > + int rt = NANOMIPS_EXTRACT_RD5(ctx->opcode); Likewise. > case NM_SW16: > + { > + int rt = decode_gpr_gpr3_src_store( > + NANOMIPS_EXTRACT_RD(ctx->opcode)); > + int rs = decode_gpr_gpr3(NANOMIPS_EXTRACT_RS(ctx->opcode)); Likewise. > case NM_SWGP16: > + { > + int rt = decode_gpr_gpr3_src_store( > + NANOMIPS_EXTRACT_RD(ctx->opcode)); Likewise. It might be handy to temporarily add target/mips/translate.o: QEMU_CFLAGS += -Wshadow=local to target/mips/Makefile.objs, but I don't know how prevalent that situation is within the existing code base... r~