Skip to content

Commit

Permalink
target/sparc: Restrict STQF to sparcv9
Browse files Browse the repository at this point in the history
Prior to sparcv9, the same encoding was STDFQ.

Cc: [email protected]
Fixes: 06c060d ("target/sparc: Move simple fp load/store to decodetree")
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
(cherry picked from commit 12d3629)
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
rth7680 authored and Michael Tokarev committed Aug 28, 2024
1 parent 1f1cbbd commit 8c34220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion target/sparc/insns.decode
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ STF 11 ..... 100100 ..... . ............. @r_r_ri_na
STFSR 11 00000 100101 ..... . ............. @n_r_ri
STXFSR 11 00001 100101 ..... . ............. @n_r_ri
{
STQF 11 ..... 100110 ..... . ............. @q_r_ri_na
STQF 11 ..... 100110 ..... . ............. @q_r_ri_na # v9
STDFQ 11 ----- 100110 ----- - -------------
}
STDF 11 ..... 100111 ..... . ............. @d_r_ri_na
Expand Down
2 changes: 1 addition & 1 deletion target/sparc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -4151,7 +4151,7 @@ static bool do_st_fpr(DisasContext *dc, arg_r_r_ri_asi *a, MemOp sz)

TRANS(STF, ALL, do_st_fpr, a, MO_32)
TRANS(STDF, ALL, do_st_fpr, a, MO_64)
TRANS(STQF, ALL, do_st_fpr, a, MO_128)
TRANS(STQF, 64, do_st_fpr, a, MO_128)

TRANS(STFA, 64, do_st_fpr, a, MO_32)
TRANS(STDFA, 64, do_st_fpr, a, MO_64)
Expand Down

0 comments on commit 8c34220

Please sign in to comment.