bitfields.isa revision 6741
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;
456251Sgblack@eecs.umich.edudef bitfield OPCODE_19	   opcode19;
466741Sgblack@eecs.umich.edudef bitfield OPCODE_18	   opcode18;
476251Sgblack@eecs.umich.edudef bitfield OPCODE_15_12  opcode15_12;
486251Sgblack@eecs.umich.edudef bitfield OPCODE_15	   opcode15;
496268Sgblack@eecs.umich.edudef bitfield MISC_OPCODE   miscOpcode;
506251Sgblack@eecs.umich.edudef bitfield OPCODE_7      opcode7;
516251Sgblack@eecs.umich.edudef bitfield OPCODE_4      opcode4;
526019Shines@cs.fsu.edu
536267Sgblack@eecs.umich.edudef bitfield IS_MISC       isMisc;
546267Sgblack@eecs.umich.edudef bitfield SEVEN_AND_FOUR sevenAndFour;
556267Sgblack@eecs.umich.edu
566019Shines@cs.fsu.edu// Other
576251Sgblack@eecs.umich.edudef bitfield COND_CODE     condCode;
586251Sgblack@eecs.umich.edudef bitfield S_FIELD       sField;
596251Sgblack@eecs.umich.edudef bitfield RN            rn;
606251Sgblack@eecs.umich.edudef bitfield RD            rd;
616251Sgblack@eecs.umich.edudef bitfield SHIFT_SIZE    shiftSize;
626251Sgblack@eecs.umich.edudef bitfield SHIFT         shift;
636251Sgblack@eecs.umich.edudef bitfield RM            rm;
646019Shines@cs.fsu.edu
656251Sgblack@eecs.umich.edudef bitfield RS            rs;
666019Shines@cs.fsu.edu
676275Sgblack@eecs.umich.edudef bitfield PUSWL         puswl;
686275Sgblack@eecs.umich.edudef bitfield PREPOST       puswl.prepost;
696275Sgblack@eecs.umich.edudef bitfield UP               puswl.up;
706275Sgblack@eecs.umich.edudef bitfield PSRUSER       puswl.psruser;
716275Sgblack@eecs.umich.edudef bitfield WRITEBACK     puswl.writeback;
726251Sgblack@eecs.umich.edudef bitfield LOADOP        puswl.loadOp;
736019Shines@cs.fsu.edu
746275Sgblack@eecs.umich.edudef bitfield PUBWL         pubwl;
756019Shines@cs.fsu.edu
766275Sgblack@eecs.umich.edudef bitfield IMM           imm;
776019Shines@cs.fsu.edu
786251Sgblack@eecs.umich.edudef bitfield IMMED_11_0    immed11_0;
796019Shines@cs.fsu.edu
806251Sgblack@eecs.umich.edudef bitfield IMMED_HI_11_8 immedHi11_8;
816251Sgblack@eecs.umich.edudef bitfield IMMED_LO_3_0  immedLo3_0;
826019Shines@cs.fsu.edu
836251Sgblack@eecs.umich.edudef bitfield IMMED_23_0    immed23_0;
846019Shines@cs.fsu.edu
856251Sgblack@eecs.umich.edudef bitfield CPNUM	   cpNum;
866019Shines@cs.fsu.edu// Note that FP Regs are only 3 bits
876251Sgblack@eecs.umich.edudef bitfield FN		   fn;
886251Sgblack@eecs.umich.edudef bitfield FD		   fd;
896251Sgblack@eecs.umich.edudef bitfield FPREGIMM	   fpRegImm;
906019Shines@cs.fsu.edu// We can just use 3:0 for FM since the hard-wired FP regs are handled in
916019Shines@cs.fsu.edu// float_regfile.hh
926251Sgblack@eecs.umich.edudef bitfield FM		   fm;
936251Sgblack@eecs.umich.edudef bitfield FPIMM	   fpImm;
946251Sgblack@eecs.umich.edudef bitfield PUNWL	   punwl;
956019Shines@cs.fsu.edu
966019Shines@cs.fsu.edu// M5 instructions
976251Sgblack@eecs.umich.edudef bitfield M5FUNC        m5Func;
986019Shines@cs.fsu.edu
99