summaryrefslogtreecommitdiff
path: root/src/sim/microcode_rom.hh
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:40 -0600
committerBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:40 -0600
commita928a438b8a005e5b6059bc5db0687bf64abcfa6 (patch)
tree4a69371c4f8efdfe784bce80a63e58f8ace665cc /src/sim/microcode_rom.hh
parent93d8e6b898a70a3f6dba9da385d5933683bf325f (diff)
downloadgem5-a928a438b8a005e5b6059bc5db0687bf64abcfa6.tar.xz
style: [patch 3/22] reduce include dependencies in some headers
Used cppclean to help identify useless includes and removed them. This involved erroneously included headers, but also cases where forward declarations could have been used rather than a full include.
Diffstat (limited to 'src/sim/microcode_rom.hh')
-rw-r--r--src/sim/microcode_rom.hh13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sim/microcode_rom.hh b/src/sim/microcode_rom.hh
index be10de86b..d45c0870a 100644
--- a/src/sim/microcode_rom.hh
+++ b/src/sim/microcode_rom.hh
@@ -36,17 +36,16 @@
* anything more.
*/
-#include "base/misc.hh"
-#include "cpu/static_inst.hh"
+#include <inttypes.h>
+
+#include "cpu/static_inst_fwd.hh"
+
+typedef uint16_t MicroPC;
class MicrocodeRom
{
public:
- StaticInstPtr
- fetchMicroop(MicroPC micropc, StaticInstPtr curMacroop)
- {
- panic("ROM based microcode isn't implemented.\n");
- }
+ StaticInstPtr fetchMicroop(MicroPC micropc, StaticInstPtr curMacroop);
};
#endif // __SIM_MICROCODE_ROM_HH__