microcode_rom.hh (5664:3b3756efad89) microcode_rom.hh (11800:54436a1784dc)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __SIM_MICROCODE_ROM_HH__
32#define __SIM_MICROCODE_ROM_HH__
33
34/*
35 * This is a generic stub microcode ROM ISAs can use if they don't need
36 * anything more.
37 */
38
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __SIM_MICROCODE_ROM_HH__
32#define __SIM_MICROCODE_ROM_HH__
33
34/*
35 * This is a generic stub microcode ROM ISAs can use if they don't need
36 * anything more.
37 */
38
39#include "base/misc.hh"
40#include "cpu/static_inst.hh"
39#include <inttypes.h>
41
40
41#include "cpu/static_inst_fwd.hh"
42
43typedef uint16_t MicroPC;
44
42class MicrocodeRom
43{
44 public:
45class MicrocodeRom
46{
47 public:
45 StaticInstPtr
46 fetchMicroop(MicroPC micropc, StaticInstPtr curMacroop)
47 {
48 panic("ROM based microcode isn't implemented.\n");
49 }
48 StaticInstPtr fetchMicroop(MicroPC micropc, StaticInstPtr curMacroop);
50};
51
52#endif // __SIM_MICROCODE_ROM_HH__
49};
50
51#endif // __SIM_MICROCODE_ROM_HH__