bitfields.isa revision 6749
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;
416749Sgblack@eecs.umich.edudef bitfield USEIMM        useImm;
426251Sgblack@eecs.umich.edudef bitfield OPCODE_24	   opcode24;
436251Sgblack@eecs.umich.edudef bitfield OPCODE_23_20  opcode23_20;
446251Sgblack@eecs.umich.edudef bitfield OPCODE_23_21  opcode23_21;
456251Sgblack@eecs.umich.edudef bitfield OPCODE_22     opcode22;
466743Ssaidi@eecs.umich.edudef bitfield OPCODE_20	   opcode20;
476251Sgblack@eecs.umich.edudef bitfield OPCODE_19	   opcode19;
486741Sgblack@eecs.umich.edudef bitfield OPCODE_18	   opcode18;
496251Sgblack@eecs.umich.edudef bitfield OPCODE_15_12  opcode15_12;
506251Sgblack@eecs.umich.edudef bitfield OPCODE_15	   opcode15;
516268Sgblack@eecs.umich.edudef bitfield MISC_OPCODE   miscOpcode;
526251Sgblack@eecs.umich.edudef bitfield OPCODE_7      opcode7;
536251Sgblack@eecs.umich.edudef bitfield OPCODE_4      opcode4;
546019Shines@cs.fsu.edu
556267Sgblack@eecs.umich.edudef bitfield IS_MISC       isMisc;
566267Sgblack@eecs.umich.edudef bitfield SEVEN_AND_FOUR sevenAndFour;
576267Sgblack@eecs.umich.edu
586019Shines@cs.fsu.edu// Other
596251Sgblack@eecs.umich.edudef bitfield COND_CODE     condCode;
606251Sgblack@eecs.umich.edudef bitfield S_FIELD       sField;
616251Sgblack@eecs.umich.edudef bitfield RN            rn;
626251Sgblack@eecs.umich.edudef bitfield RD            rd;
636251Sgblack@eecs.umich.edudef bitfield SHIFT_SIZE    shiftSize;
646251Sgblack@eecs.umich.edudef bitfield SHIFT         shift;
656251Sgblack@eecs.umich.edudef bitfield RM            rm;
666019Shines@cs.fsu.edu
676251Sgblack@eecs.umich.edudef bitfield RS            rs;
686019Shines@cs.fsu.edu
696275Sgblack@eecs.umich.edudef bitfield PUSWL         puswl;
706275Sgblack@eecs.umich.edudef bitfield PREPOST       puswl.prepost;
716275Sgblack@eecs.umich.edudef bitfield UP               puswl.up;
726275Sgblack@eecs.umich.edudef bitfield PSRUSER       puswl.psruser;
736275Sgblack@eecs.umich.edudef bitfield WRITEBACK     puswl.writeback;
746251Sgblack@eecs.umich.edudef bitfield LOADOP        puswl.loadOp;
756019Shines@cs.fsu.edu
766275Sgblack@eecs.umich.edudef bitfield PUBWL         pubwl;
776019Shines@cs.fsu.edu
786275Sgblack@eecs.umich.edudef bitfield IMM           imm;
796019Shines@cs.fsu.edu
806251Sgblack@eecs.umich.edudef bitfield IMMED_11_0    immed11_0;
816019Shines@cs.fsu.edu
826251Sgblack@eecs.umich.edudef bitfield IMMED_HI_11_8 immedHi11_8;
836251Sgblack@eecs.umich.edudef bitfield IMMED_LO_3_0  immedLo3_0;
846019Shines@cs.fsu.edu
856251Sgblack@eecs.umich.edudef bitfield IMMED_23_0    immed23_0;
866019Shines@cs.fsu.edu
876251Sgblack@eecs.umich.edudef bitfield CPNUM	   cpNum;
886019Shines@cs.fsu.edu// Note that FP Regs are only 3 bits
896251Sgblack@eecs.umich.edudef bitfield FN		   fn;
906251Sgblack@eecs.umich.edudef bitfield FD		   fd;
916251Sgblack@eecs.umich.edudef bitfield FPREGIMM	   fpRegImm;
926019Shines@cs.fsu.edu// We can just use 3:0 for FM since the hard-wired FP regs are handled in
936019Shines@cs.fsu.edu// float_regfile.hh
946251Sgblack@eecs.umich.edudef bitfield FM		   fm;
956251Sgblack@eecs.umich.edudef bitfield FPIMM	   fpImm;
966251Sgblack@eecs.umich.edudef bitfield PUNWL	   punwl;
976019Shines@cs.fsu.edu
986019Shines@cs.fsu.edu// M5 instructions
996251Sgblack@eecs.umich.edudef bitfield M5FUNC        m5Func;
1006019Shines@cs.fsu.edu
101