Skip to content

Commit aa04c9d

Browse files
LemonBoyvivier
authored andcommitted
target/sparc: Translate flushw opcode
The ifdef logic should unconditionally compile in the `xop == 0x2b` case when targeting sparc64. Signed-off-by: Giuseppe Musacchio <[email protected]> Signed-off-by: Laurent Vivier <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent e765115 commit aa04c9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

target/sparc/translate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,6 +3663,8 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
36633663
#endif
36643664
gen_store_gpr(dc, rd, cpu_tmp0);
36653665
break;
3666+
#endif
3667+
#if defined(TARGET_SPARC64) || !defined(CONFIG_USER_ONLY)
36663668
} else if (xop == 0x2b) { /* rdtbr / V9 flushw */
36673669
#ifdef TARGET_SPARC64
36683670
gen_helper_flushw(cpu_env);

0 commit comments

Comments
 (0)