diff options
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/static_inst.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpu/static_inst.hh b/cpu/static_inst.hh index a200e2849..f0b75c10e 100644 --- a/cpu/static_inst.hh +++ b/cpu/static_inst.hh @@ -397,8 +397,9 @@ class StaticInst : public StaticInstBase 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 getOpname(){ return (machInst & 0x0000003F); }//5...0 - int getBranch(){ return (machInst & 0x0000FFFF); }//5...0 + 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 std::string getName() { return mnemonic; } |