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_ALPHA_DECODER_HH__ 32#define __ARCH_ALPHA_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_ALPHA_DECODER_HH__ 32#define __ARCH_ALPHA_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#include "sim/full_system.hh" 38 | 37#include "sim/full_system.hh" 38 |
39class ThreadContext; 40 |
|
39namespace AlphaISA 40{ 41 42class Decoder 43{ 44 protected: 45 ThreadContext *tc; 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. | 41namespace AlphaISA 42{ 43 44class Decoder 45{ 46 protected: 47 ThreadContext *tc; 48 --- 47 unchanged lines hidden (view full) --- 96 bool 97 instReady() 98 { 99 return instDone; 100 } 101 102 protected: 103 /// A cache of decoded instruction objects. |
102 static DecodeCache defaultCache; | 104 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 --- | 105 106 public: 107 StaticInstPtr decodeInst(ExtMachInst mach_inst); 108 109 /// Decode a machine instruction. 110 /// @param mach_inst The binary instruction to decode. 111 /// @retval A pointer to the corresponding StaticInst object. 112 StaticInstPtr --- 18 unchanged lines hidden --- |