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