inst.h (8e8c668927b029f6ccc350eb1aa936864cc4eb6f) inst.h (258f3a2ea93ff7e322006c716cedc4fa3d861453)
1/*
2 * Format of an instruction in memory.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 1996, 2000 by Ralf Baechle

--- 89 unchanged lines hidden (view full) ---

98enum rt_op {
99 bltz_op, bgez_op, bltzl_op, bgezl_op,
100 spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
101 tgei_op, tgeiu_op, tlti_op, tltiu_op,
102 teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
103 bltzal_op, bgezal_op, bltzall_op, bgezall_op,
104 rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
105 rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
1/*
2 * Format of an instruction in memory.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 1996, 2000 by Ralf Baechle

--- 89 unchanged lines hidden (view full) ---

98enum rt_op {
99 bltz_op, bgez_op, bltzl_op, bgezl_op,
100 spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
101 tgei_op, tgeiu_op, tlti_op, tltiu_op,
102 teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
103 bltzal_op, bgezal_op, bltzall_op, bgezall_op,
104 rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
105 rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
106 bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
106 bposge32_op, rt_op_0x1d, rt_op_0x1e, synci_op
107};
108
109/*
110 * rs field of cop opcodes.
111 */
112enum cop_op {
113 mfc_op = 0x00, dmfc_op = 0x01,
114 cfc_op = 0x02, mfhc0_op = 0x02,

--- 466 unchanged lines hidden (view full) ---

581 __BITFIELD_FIELD(unsigned int rs : 5,
582 __BITFIELD_FIELD(unsigned int rt : 5,
583 __BITFIELD_FIELD(unsigned int rd : 5,
584 __BITFIELD_FIELD(unsigned int re : 5,
585 __BITFIELD_FIELD(unsigned int func : 6,
586 ;))))))
587};
588
107};
108
109/*
110 * rs field of cop opcodes.
111 */
112enum cop_op {
113 mfc_op = 0x00, dmfc_op = 0x01,
114 cfc_op = 0x02, mfhc0_op = 0x02,

--- 466 unchanged lines hidden (view full) ---

581 __BITFIELD_FIELD(unsigned int rs : 5,
582 __BITFIELD_FIELD(unsigned int rt : 5,
583 __BITFIELD_FIELD(unsigned int rd : 5,
584 __BITFIELD_FIELD(unsigned int re : 5,
585 __BITFIELD_FIELD(unsigned int func : 6,
586 ;))))))
587};
588
589struct c0r_format { /* C0 register format */
590 __BITFIELD_FIELD(unsigned int opcode : 6,
591 __BITFIELD_FIELD(unsigned int rs : 5,
592 __BITFIELD_FIELD(unsigned int rt : 5,
593 __BITFIELD_FIELD(unsigned int rd : 5,
594 __BITFIELD_FIELD(unsigned int z: 8,
595 __BITFIELD_FIELD(unsigned int sel : 3,
596 ;))))))
597};
598
599struct mfmc0_format { /* MFMC0 register format */
600 __BITFIELD_FIELD(unsigned int opcode : 6,
601 __BITFIELD_FIELD(unsigned int rs : 5,
602 __BITFIELD_FIELD(unsigned int rt : 5,
603 __BITFIELD_FIELD(unsigned int rd : 5,
604 __BITFIELD_FIELD(unsigned int re : 5,
605 __BITFIELD_FIELD(unsigned int sc : 1,
606 __BITFIELD_FIELD(unsigned int : 2,
607 __BITFIELD_FIELD(unsigned int sel : 3,
608 ;))))))))
609};
610
611struct co_format { /* C0 CO format */
612 __BITFIELD_FIELD(unsigned int opcode : 6,
613 __BITFIELD_FIELD(unsigned int co : 1,
614 __BITFIELD_FIELD(unsigned int code : 19,
615 __BITFIELD_FIELD(unsigned int func : 6,
616 ;))))
617};
618
589struct p_format { /* Performance counter format (R10000) */
590 __BITFIELD_FIELD(unsigned int opcode : 6,
591 __BITFIELD_FIELD(unsigned int rs : 5,
592 __BITFIELD_FIELD(unsigned int rt : 5,
593 __BITFIELD_FIELD(unsigned int rd : 5,
594 __BITFIELD_FIELD(unsigned int re : 5,
595 __BITFIELD_FIELD(unsigned int func : 6,
596 ;))))))

--- 335 unchanged lines hidden (view full) ---

932 unsigned int word;
933 unsigned short halfword[2];
934 unsigned char byte[4];
935 struct j_format j_format;
936 struct i_format i_format;
937 struct u_format u_format;
938 struct c_format c_format;
939 struct r_format r_format;
619struct p_format { /* Performance counter format (R10000) */
620 __BITFIELD_FIELD(unsigned int opcode : 6,
621 __BITFIELD_FIELD(unsigned int rs : 5,
622 __BITFIELD_FIELD(unsigned int rt : 5,
623 __BITFIELD_FIELD(unsigned int rd : 5,
624 __BITFIELD_FIELD(unsigned int re : 5,
625 __BITFIELD_FIELD(unsigned int func : 6,
626 ;))))))

--- 335 unchanged lines hidden (view full) ---

962 unsigned int word;
963 unsigned short halfword[2];
964 unsigned char byte[4];
965 struct j_format j_format;
966 struct i_format i_format;
967 struct u_format u_format;
968 struct c_format c_format;
969 struct r_format r_format;
970 struct c0r_format c0r_format;
971 struct mfmc0_format mfmc0_format;
972 struct co_format co_format;
940 struct p_format p_format;
941 struct f_format f_format;
942 struct ma_format ma_format;
943 struct msa_mi10_format msa_mi10_format;
944 struct b_format b_format;
945 struct ps_format ps_format;
946 struct v_format v_format;
947 struct spec3_format spec3_format;

--- 35 unchanged lines hidden ---
973 struct p_format p_format;
974 struct f_format f_format;
975 struct ma_format ma_format;
976 struct msa_mi10_format msa_mi10_format;
977 struct b_format b_format;
978 struct ps_format ps_format;
979 struct v_format v_format;
980 struct spec3_format spec3_format;

--- 35 unchanged lines hidden ---