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_POWER_DECODER_HH__
32#define __ARCH_POWER_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_POWER_DECODER_HH__
32#define __ARCH_POWER_DECODER_HH__
33
34#include "arch/generic/decode_cache.hh"
34#include "arch/types.hh"
35#include "arch/types.hh"
35#include "cpu/decode_cache.hh"
36#include "cpu/static_inst_fwd.hh"
36#include "cpu/static_inst.hh"
37
37
38class ThreadContext;
39
38namespace PowerISA
39{
40
41class Decoder
42{
43 protected:
44 ThreadContext * tc;
45

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

100
101 bool
102 instReady()
103 {
104 return instDone;
105 }
106 protected:
107 /// A cache of decoded instruction objects.
40namespace PowerISA
41{
42
43class Decoder
44{
45 protected:
46 ThreadContext * tc;
47

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

102
103 bool
104 instReady()
105 {
106 return instDone;
107 }
108 protected:
109 /// A cache of decoded instruction objects.
108 static DecodeCache defaultCache;
110 static GenericISA::BasicDecodeCache defaultCache;
109
110 public:
111 StaticInstPtr decodeInst(ExtMachInst mach_inst);
112
113 /// Decode a machine instruction.
114 /// @param mach_inst The binary instruction to decode.
115 /// @retval A pointer to the corresponding StaticInst object.
116 StaticInstPtr

--- 18 unchanged lines hidden ---
111
112 public:
113 StaticInstPtr decodeInst(ExtMachInst mach_inst);
114
115 /// Decode a machine instruction.
116 /// @param mach_inst The binary instruction to decode.
117 /// @retval A pointer to the corresponding StaticInst object.
118 StaticInstPtr

--- 18 unchanged lines hidden ---