Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging
[qemu/ar7.git] / target / mips / tx79.decode
blob0f748b53a64a458a389bf192a8f18dcb1e5947f6
1 # Toshiba C790's instruction set
3 # Copyright (C) 2021  Philippe Mathieu-Daudé
5 # SPDX-License-Identifier: LGPL-2.1-or-later
7 # Toshiba Appendix B  C790-Specific Instruction Set Details
9 ###########################################################################
10 # Named attribute sets.  These are used to make nice(er) names
11 # when creating helpers common to those for the individual
12 # instruction patterns.
14 &rtype           rs rt rd sa
16 ###########################################################################
17 # Named instruction formats.  These are generally used to
18 # reduce the amount of duplication between instruction patterns.
20 @rs_rt_rd       ...... rs:5  rt:5  rd:5  ..... ......   &rtype sa=0
21 @rt_rd          ...... ..... rt:5  rd:5  ..... ......   &rtype rs=0 sa=0
22 @rs             ...... rs:5  ..... ..........  ......   &rtype rt=0 rd=0 sa=0
23 @rd             ...... ..........  rd:5  ..... ......   &rtype rs=0 rt=0 sa=0
25 ###########################################################################
27 MFHI1           011100 0000000000  ..... 00000 010000   @rd
28 MTHI1           011100 .....  0000000000 00000 010001   @rs
29 MFLO1           011100 0000000000  ..... 00000 010010   @rd
30 MTLO1           011100 .....  0000000000 00000 010011   @rs
32 # MMI2
34 PCPYLD          011100 ..... ..... ..... 01110 001001   @rs_rt_rd
36 # MMI3
38 PCPYUD          011100 ..... ..... ..... 01110 101001   @rs_rt_rd
39 PCPYH           011100 00000 ..... ..... 11011 101001   @rt_rd