bitfields.isa revision 3991:00bbda284575
12623SN/A// Copyright (c) 2006-2007 The Regents of The University of Michigan 213012Sandreas.sandberg@arm.com// All rights reserved. 38926Sandreas.hansson@arm.com// 48926Sandreas.hansson@arm.com// Redistribution and use in source and binary forms, with or without 58926Sandreas.hansson@arm.com// modification, are permitted provided that the following conditions are 68926Sandreas.hansson@arm.com// met: redistributions of source code must retain the above copyright 78926Sandreas.hansson@arm.com// notice, this list of conditions and the following disclaimer; 88926Sandreas.hansson@arm.com// redistributions in binary form must reproduce the above copyright 98926Sandreas.hansson@arm.com// notice, this list of conditions and the following disclaimer in the 108926Sandreas.hansson@arm.com// documentation and/or other materials provided with the distribution; 118926Sandreas.hansson@arm.com// neither the name of the copyright holders nor the names of its 128926Sandreas.hansson@arm.com// contributors may be used to endorse or promote products derived from 138926Sandreas.hansson@arm.com// this software without specific prior written permission. 142623SN/A// 152623SN/A// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162623SN/A// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172623SN/A// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182623SN/A// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192623SN/A// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202623SN/A// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212623SN/A// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222623SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232623SN/A// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242623SN/A// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252623SN/A// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262623SN/A// 272623SN/A// Authors: Ali Saidi 282623SN/A// Gabe Black 292623SN/A// Steve Reinhardt 302623SN/A 312623SN/A//////////////////////////////////////////////////////////////////// 322623SN/A// 332623SN/A// Bitfield definitions. 342623SN/A// 352623SN/A 362623SN/A// Bitfields are shared liberally between instruction formats, so they are 372623SN/A// simply defined alphabetically 382623SN/A 392665Ssaidi@eecs.umich.edudef bitfield A <29>; 402665Ssaidi@eecs.umich.edudef bitfield BPCC <21:20>; // for BPcc & FBPcc 412623SN/Adef bitfield FCMPCC <26:25>; // for FCMP & FCMPEa 422623SN/Adef bitfield FMOVCC <13:11>; // for FMOVcc 432623SN/Adef bitfield CC <12:11>; // for MOVcc & Tcc 442623SN/Adef bitfield MOVCC3 <18>; // also for MOVcc 452623SN/Adef bitfield CMASK <6:4>; 462623SN/Adef bitfield COND2 <28:25>; 4711147Smitch.hayenga@arm.comdef bitfield COND4 <17:14>; 4811608Snikos.nikoleris@arm.comdef bitfield D16HI <21:20>; 495529Snate@binkert.orgdef bitfield D16LO <13:0>; 5010381Sdam.sunwoo@arm.comdef bitfield DISP19 <18:0>; 519647Sdam.sunwoo@arm.comdef bitfield DISP22 <21:0>; 522623SN/Adef bitfield DISP30 <29:0>; 532623SN/Adef bitfield FCN <29:25>; 542623SN/Adef bitfield I <13>; 552623SN/Adef bitfield IMM_ASI <12:5>; 565529Snate@binkert.orgdef bitfield IMM22 <21:0>; 572623SN/Adef bitfield MMASK <3:0>; 582623SN/Adef bitfield OP <31:30>; 5911169Sandreas.hansson@arm.comdef bitfield OP2 <24:22>; 602623SN/Adef bitfield OP3 <24:19>; 6113012Sandreas.sandberg@arm.comdef bitfield OPF <13:5>; 622623SN/Adef bitfield OPF_CC <13:11>; 6312127Sspwilson2@wisc.edudef bitfield OPF_LOW5 <9:5>; 642623SN/Adef bitfield OPF_LOW6 <10:5>; 652623SN/Adef bitfield P <19>; 666078Sgblack@eecs.umich.edudef bitfield RCOND2 <27:25>; 675487Snate@binkert.orgdef bitfield RCOND3 <12:10>; 685487Snate@binkert.orgdef bitfield RCOND4 <12:10>; 692623SN/Adef bitfield RD <29:25>; 702623SN/Adef bitfield RS1 <18:14>; 712623SN/Adef bitfield RS2 <4:0>; 722623SN/Adef bitfield SHCNT32 <4:0>; 738707Sandreas.hansson@arm.comdef bitfield SHCNT64 <5:0>; 749443SAndreas.Sandberg@ARM.comdef bitfield SIMM10 <9:0>; 759443SAndreas.Sandberg@ARM.comdef bitfield SIMM11 <10:0>; 769443SAndreas.Sandberg@ARM.comdef bitfield SIMM13 <12:0>; 779443SAndreas.Sandberg@ARM.comdef bitfield SW_TRAP <7:0>; 789443SAndreas.Sandberg@ARM.comdef bitfield X <12>; 799443SAndreas.Sandberg@ARM.com 809443SAndreas.Sandberg@ARM.com// Extended bitfields which aren't part of the actual instruction. 819443SAndreas.Sandberg@ARM.com 829443SAndreas.Sandberg@ARM.comdef bitfield EXT_ASI <39:32>; 839443SAndreas.Sandberg@ARM.com