diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-13 16:13:21 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-13 16:13:21 +0000 |
commit | ce18d900a17cdda2cc041b51c56e6c84fb155331 (patch) | |
tree | d7be0cac19e550c93fc207e749ea80e1cf9a639e /src/cpu/static_inst.hh | |
parent | 8edc9d79cee3edd6d16a8254a0180aaa242974c7 (diff) | |
download | gem5-ce18d900a17cdda2cc041b51c56e6c84fb155331.tar.xz |
Replaced makeExtMI with predecode.
Removed the getOpcode function from StaticInst which only made sense for Alpha.
Started implementing the x86 predecoder.
--HG--
extra : convert_revision : a13ea257c8943ef25e9bc573024a99abacf4a70d
Diffstat (limited to 'src/cpu/static_inst.hh')
-rw-r--r-- | src/cpu/static_inst.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh index 416c8ab56..3424c3086 100644 --- a/src/cpu/static_inst.hh +++ b/src/cpu/static_inst.hh @@ -439,9 +439,6 @@ class StaticInst : public StaticInstBase //This is defined as inline below. static StaticInstPtr decode(ExtMachInst mach_inst); - /// Return opcode of machine instruction - uint32_t getOpcode() { return bits(machInst, 31, 26);} - /// Return name of machine instruction std::string getName() { return mnemonic; } }; @@ -474,7 +471,7 @@ class StaticInstPtr : public RefCountingPtr<StaticInst> /// Construct directly from machine instruction. /// Calls StaticInst::decode(). - StaticInstPtr(TheISA::ExtMachInst mach_inst) + explicit StaticInstPtr(TheISA::ExtMachInst mach_inst) : RefCountingPtr<StaticInst>(StaticInst::decode(mach_inst)) { } |