bitfields.isa revision 6275
112771Sqtt2@cornell.edu// -*- mode:c++ -*-
212771Sqtt2@cornell.edu
312771Sqtt2@cornell.edu// Copyright (c) 2007-2008 The Florida State University
412771Sqtt2@cornell.edu// All rights reserved.
512771Sqtt2@cornell.edu//
612771Sqtt2@cornell.edu// Redistribution and use in source and binary forms, with or without
712771Sqtt2@cornell.edu// modification, are permitted provided that the following conditions are
812771Sqtt2@cornell.edu// met: redistributions of source code must retain the above copyright
912771Sqtt2@cornell.edu// notice, this list of conditions and the following disclaimer;
1012771Sqtt2@cornell.edu// redistributions in binary form must reproduce the above copyright
1112771Sqtt2@cornell.edu// notice, this list of conditions and the following disclaimer in the
1212771Sqtt2@cornell.edu// documentation and/or other materials provided with the distribution;
1312771Sqtt2@cornell.edu// neither the name of the copyright holders nor the names of its
1412771Sqtt2@cornell.edu// contributors may be used to endorse or promote products derived from
1512771Sqtt2@cornell.edu// this software without specific prior written permission.
1612771Sqtt2@cornell.edu//
1712771Sqtt2@cornell.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1812771Sqtt2@cornell.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1912771Sqtt2@cornell.edu// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2012771Sqtt2@cornell.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2112771Sqtt2@cornell.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2212771Sqtt2@cornell.edu// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2312771Sqtt2@cornell.edu// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2412771Sqtt2@cornell.edu// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2512771Sqtt2@cornell.edu// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28//
29// Authors: Stephen Hines
30
31////////////////////////////////////////////////////////////////////
32//
33// Bitfield definitions.
34//
35
36// Opcode fields
37def bitfield ENCODING      encoding;
38def bitfield OPCODE        opcode;
39def bitfield MEDIA_OPCODE  mediaOpcode;
40def bitfield MEDIA_OPCODE2 mediaOpcode2;
41def bitfield OPCODE_24	   opcode24;
42def bitfield OPCODE_23_20  opcode23_20;
43def bitfield OPCODE_23_21  opcode23_21;
44def bitfield OPCODE_22     opcode22;
45def bitfield OPCODE_19	   opcode19;
46def bitfield OPCODE_15_12  opcode15_12;
47def bitfield OPCODE_15	   opcode15;
48def bitfield MISC_OPCODE   miscOpcode;
49def bitfield OPCODE_7      opcode7;
50def bitfield OPCODE_4      opcode4;
51
52def bitfield IS_MISC       isMisc;
53def bitfield SEVEN_AND_FOUR sevenAndFour;
54
55// Other
56def bitfield COND_CODE     condCode;
57def bitfield S_FIELD       sField;
58def bitfield RN            rn;
59def bitfield RD            rd;
60def bitfield SHIFT_SIZE    shiftSize;
61def bitfield SHIFT         shift;
62def bitfield RM            rm;
63
64def bitfield RS            rs;
65
66def bitfield PUSWL         puswl;
67def bitfield PREPOST       puswl.prepost;
68def bitfield UP               puswl.up;
69def bitfield PSRUSER       puswl.psruser;
70def bitfield WRITEBACK     puswl.writeback;
71def bitfield LOADOP        puswl.loadOp;
72
73def bitfield PUBWL         pubwl;
74
75def bitfield IMM           imm;
76
77def bitfield IMMED_11_0    immed11_0;
78
79def bitfield IMMED_HI_11_8 immedHi11_8;
80def bitfield IMMED_LO_3_0  immedLo3_0;
81
82def bitfield IMMED_23_0    immed23_0;
83
84def bitfield CPNUM	   cpNum;
85// Note that FP Regs are only 3 bits
86def bitfield FN		   fn;
87def bitfield FD		   fd;
88def bitfield FPREGIMM	   fpRegImm;
89// We can just use 3:0 for FM since the hard-wired FP regs are handled in
90// float_regfile.hh
91def bitfield FM		   fm;
92def bitfield FPIMM	   fpImm;
93def bitfield PUNWL	   punwl;
94
95// M5 instructions
96def bitfield M5FUNC        m5Func;
97
98