target/sparc: Translate flushw opcode
authorGiuseppe Musacchio <thatlemon@gmail.com>
Thu, 25 Jun 2020 09:12:03 +0000 (11:12 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 29 Jun 2020 10:59:50 +0000 (12:59 +0200)
The ifdef logic should unconditionally compile in the `xop == 0x2b` case
when targeting sparc64.

Signed-off-by: Giuseppe Musacchio <thatlemon@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200625091204.3186186-2-laurent@vivier.eu>

target/sparc/translate.c

index 9416a551cf461f8b5cc9f3da44d424825e2ba2b4..1a4efd4ed665615036c4f44637c93876601d4f60 100644 (file)
@@ -3663,6 +3663,8 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
 #endif
                 gen_store_gpr(dc, rd, cpu_tmp0);
                 break;
+#endif
+#if defined(TARGET_SPARC64) || !defined(CONFIG_USER_ONLY)
             } else if (xop == 0x2b) { /* rdtbr / V9 flushw */
 #ifdef TARGET_SPARC64
                 gen_helper_flushw(cpu_env);