xref: /openbmc/qemu/target/mips/tcg/tx79.decode (revision ac12b601)
1# Toshiba C790's instruction set
2#
3# Copyright (C) 2021  Philippe Mathieu-Daudé
4#
5# SPDX-License-Identifier: LGPL-2.1-or-later
6#
7# Toshiba Appendix B  C790-Specific Instruction Set Details
8
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.
13
14&rtype           rs rt rd sa
15
16###########################################################################
17# Named instruction formats.  These are generally used to
18# reduce the amount of duplication between instruction patterns.
19
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
24
25###########################################################################
26
27MFHI1           011100 0000000000  ..... 00000 010000   @rd
28MTHI1           011100 .....  0000000000 00000 010001   @rs
29MFLO1           011100 0000000000  ..... 00000 010010   @rd
30MTLO1           011100 .....  0000000000 00000 010011   @rs
31
32# MMI2
33
34PCPYLD          011100 ..... ..... ..... 01110 001001   @rs_rt_rd
35
36# MMI3
37
38PCPYUD          011100 ..... ..... ..... 01110 101001   @rs_rt_rd
39PCPYH           011100 00000 ..... ..... 11011 101001   @rt_rd
40