bitfields.isa revision 6743
16019Shines@cs.fsu.edu// -*- mode:c++ -*-
26019Shines@cs.fsu.edu
36019Shines@cs.fsu.edu// Copyright (c) 2007-2008 The Florida State University
46019Shines@cs.fsu.edu// All rights reserved.
56019Shines@cs.fsu.edu//
66019Shines@cs.fsu.edu// Redistribution and use in source and binary forms, with or without
76019Shines@cs.fsu.edu// modification, are permitted provided that the following conditions are
86019Shines@cs.fsu.edu// met: redistributions of source code must retain the above copyright
96019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer;
106019Shines@cs.fsu.edu// redistributions in binary form must reproduce the above copyright
116019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer in the
126019Shines@cs.fsu.edu// documentation and/or other materials provided with the distribution;
136019Shines@cs.fsu.edu// neither the name of the copyright holders nor the names of its
146019Shines@cs.fsu.edu// contributors may be used to endorse or promote products derived from
156019Shines@cs.fsu.edu// this software without specific prior written permission.
166019Shines@cs.fsu.edu//
176019Shines@cs.fsu.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186019Shines@cs.fsu.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196019Shines@cs.fsu.edu// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206019Shines@cs.fsu.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216019Shines@cs.fsu.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226019Shines@cs.fsu.edu// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236019Shines@cs.fsu.edu// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246019Shines@cs.fsu.edu// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256019Shines@cs.fsu.edu// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266019Shines@cs.fsu.edu// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276019Shines@cs.fsu.edu// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286019Shines@cs.fsu.edu//
296019Shines@cs.fsu.edu// Authors: Stephen Hines
306019Shines@cs.fsu.edu
316019Shines@cs.fsu.edu////////////////////////////////////////////////////////////////////
326019Shines@cs.fsu.edu//
336019Shines@cs.fsu.edu// Bitfield definitions.
346019Shines@cs.fsu.edu//
356019Shines@cs.fsu.edu
366019Shines@cs.fsu.edu// Opcode fields
376268Sgblack@eecs.umich.edudef bitfield ENCODING      encoding;
386251Sgblack@eecs.umich.edudef bitfield OPCODE        opcode;
396269Sgblack@eecs.umich.edudef bitfield MEDIA_OPCODE  mediaOpcode;
406269Sgblack@eecs.umich.edudef bitfield MEDIA_OPCODE2 mediaOpcode2;
416251Sgblack@eecs.umich.edudef bitfield OPCODE_24	   opcode24;
426251Sgblack@eecs.umich.edudef bitfield OPCODE_23_20  opcode23_20;
436251Sgblack@eecs.umich.edudef bitfield OPCODE_23_21  opcode23_21;
446251Sgblack@eecs.umich.edudef bitfield OPCODE_22     opcode22;
456743Ssaidi@eecs.umich.edudef bitfield OPCODE_20	   opcode20;
466251Sgblack@eecs.umich.edudef bitfield OPCODE_19	   opcode19;
476741Sgblack@eecs.umich.edudef bitfield OPCODE_18	   opcode18;
486251Sgblack@eecs.umich.edudef bitfield OPCODE_15_12  opcode15_12;
496251Sgblack@eecs.umich.edudef bitfield OPCODE_15	   opcode15;
506268Sgblack@eecs.umich.edudef bitfield MISC_OPCODE   miscOpcode;
516251Sgblack@eecs.umich.edudef bitfield OPCODE_7      opcode7;
526251Sgblack@eecs.umich.edudef bitfield OPCODE_4      opcode4;
536019Shines@cs.fsu.edu
546267Sgblack@eecs.umich.edudef bitfield IS_MISC       isMisc;
556267Sgblack@eecs.umich.edudef bitfield SEVEN_AND_FOUR sevenAndFour;
566267Sgblack@eecs.umich.edu
576019Shines@cs.fsu.edu// Other
586251Sgblack@eecs.umich.edudef bitfield COND_CODE     condCode;
596251Sgblack@eecs.umich.edudef bitfield S_FIELD       sField;
606251Sgblack@eecs.umich.edudef bitfield RN            rn;
616251Sgblack@eecs.umich.edudef bitfield RD            rd;
626251Sgblack@eecs.umich.edudef bitfield SHIFT_SIZE    shiftSize;
636251Sgblack@eecs.umich.edudef bitfield SHIFT         shift;
646251Sgblack@eecs.umich.edudef bitfield RM            rm;
656019Shines@cs.fsu.edu
666251Sgblack@eecs.umich.edudef bitfield RS            rs;
676019Shines@cs.fsu.edu
686275Sgblack@eecs.umich.edudef bitfield PUSWL         puswl;
696275Sgblack@eecs.umich.edudef bitfield PREPOST       puswl.prepost;
706275Sgblack@eecs.umich.edudef bitfield UP               puswl.up;
716275Sgblack@eecs.umich.edudef bitfield PSRUSER       puswl.psruser;
726275Sgblack@eecs.umich.edudef bitfield WRITEBACK     puswl.writeback;
736251Sgblack@eecs.umich.edudef bitfield LOADOP        puswl.loadOp;
746019Shines@cs.fsu.edu
756275Sgblack@eecs.umich.edudef bitfield PUBWL         pubwl;
766019Shines@cs.fsu.edu
776275Sgblack@eecs.umich.edudef bitfield IMM           imm;
786019Shines@cs.fsu.edu
796251Sgblack@eecs.umich.edudef bitfield IMMED_11_0    immed11_0;
806019Shines@cs.fsu.edu
816251Sgblack@eecs.umich.edudef bitfield IMMED_HI_11_8 immedHi11_8;
826251Sgblack@eecs.umich.edudef bitfield IMMED_LO_3_0  immedLo3_0;
836019Shines@cs.fsu.edu
846251Sgblack@eecs.umich.edudef bitfield IMMED_23_0    immed23_0;
856019Shines@cs.fsu.edu
866251Sgblack@eecs.umich.edudef bitfield CPNUM	   cpNum;
876019Shines@cs.fsu.edu// Note that FP Regs are only 3 bits
886251Sgblack@eecs.umich.edudef bitfield FN		   fn;
896251Sgblack@eecs.umich.edudef bitfield FD		   fd;
906251Sgblack@eecs.umich.edudef bitfield FPREGIMM	   fpRegImm;
916019Shines@cs.fsu.edu// We can just use 3:0 for FM since the hard-wired FP regs are handled in
926019Shines@cs.fsu.edu// float_regfile.hh
936251Sgblack@eecs.umich.edudef bitfield FM		   fm;
946251Sgblack@eecs.umich.edudef bitfield FPIMM	   fpImm;
956251Sgblack@eecs.umich.edudef bitfield PUNWL	   punwl;
966019Shines@cs.fsu.edu
976019Shines@cs.fsu.edu// M5 instructions
986251Sgblack@eecs.umich.edudef bitfield M5FUNC        m5Func;
996019Shines@cs.fsu.edu
100