decoder.hh (9023:e9201a7bce59) decoder.hh (9024:5851586f399c)
1/*
2 * Copyright (c) 2012 Google
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;

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

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __ARCH_MIPS_DECODER_HH__
32#define __ARCH_MIPS_DECODER_HH__
33
1/*
2 * Copyright (c) 2012 Google
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;

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

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __ARCH_MIPS_DECODER_HH__
32#define __ARCH_MIPS_DECODER_HH__
33
34#include "arch/generic/decode_cache.hh"
34#include "arch/mips/types.hh"
35#include "base/misc.hh"
36#include "base/types.hh"
35#include "arch/mips/types.hh"
36#include "base/misc.hh"
37#include "base/types.hh"
37#include "cpu/decode_cache.hh"
38#include "cpu/static_inst_fwd.hh"
38#include "cpu/static_inst.hh"
39
40class ThreadContext;
41
42namespace MipsISA
43{
44
45class Decoder
46{

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

94 bool
95 instReady()
96 {
97 return instDone;
98 }
99
100 protected:
101 /// A cache of decoded instruction objects.
39
40class ThreadContext;
41
42namespace MipsISA
43{
44
45class Decoder
46{

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

94 bool
95 instReady()
96 {
97 return instDone;
98 }
99
100 protected:
101 /// A cache of decoded instruction objects.
102 static DecodeCache defaultCache;
102 static GenericISA::BasicDecodeCache defaultCache;
103
104 public:
105 StaticInstPtr decodeInst(ExtMachInst mach_inst);
106
107 /// Decode a machine instruction.
108 /// @param mach_inst The binary instruction to decode.
109 /// @retval A pointer to the corresponding StaticInst object.
110 StaticInstPtr

--- 18 unchanged lines hidden ---
103
104 public:
105 StaticInstPtr decodeInst(ExtMachInst mach_inst);
106
107 /// Decode a machine instruction.
108 /// @param mach_inst The binary instruction to decode.
109 /// @retval A pointer to the corresponding StaticInst object.
110 StaticInstPtr

--- 18 unchanged lines hidden ---