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" |
35#include "arch/types.hh" |
36#include "cpu/static_inst.hh" |
37#include "sim/full_system.hh" 38 |
39class ThreadContext; 40 |
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. |
104 static GenericISA::BasicDecodeCache defaultCache; |
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 --- |