36a37
> #include "base/bitfield.hh"
414,423c415,418
< //MIPS Decoder Debug Functions
< int getOpcode() { return (machInst & 0xFC000000) >> 26 ; }//31..26
< int getRs() { return (machInst & 0x03E00000) >> 21; } //25...21
< int getRt() { return (machInst & 0x001F0000) >> 16; } //20...16
< int getRd() { return (machInst & 0x0000F800) >> 11; } //15...11
< int getImm() { return (machInst & 0x0000FFFF); } //15...0
< int getFunction(){ return (machInst & 0x0000003F); }//5...0
< int getBranch(){ return (machInst & 0x0000FFFF); }//15...0
< int getJump(){ return (machInst & 0x03FFFFFF); }//5...0
< int getHint(){ return (machInst & 0x000007C0) >> 6; } //10...6
---
> /// Return opcode of machine instruction
> uint32_t getOpcode() { return bits(machInst, 31, 26);}
>
> /// Return name of machine instruction