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_SPARC_DECODER_HH__ 32#define __ARCH_SPARC_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_SPARC_DECODER_HH__ 32#define __ARCH_SPARC_DECODER_HH__ 33 |
34#include "arch/generic/decode_cache.hh" |
|
34#include "arch/sparc/registers.hh" 35#include "arch/types.hh" | 35#include "arch/sparc/registers.hh" 36#include "arch/types.hh" |
36#include "cpu/decode_cache.hh" 37#include "cpu/static_inst_fwd.hh" | 37#include "cpu/static_inst.hh" |
38#include "cpu/thread_context.hh" 39 40class ThreadContext; 41 42namespace SparcISA 43{ 44 45class Decoder --- 58 unchanged lines hidden (view full) --- 104 bool 105 instReady() 106 { 107 return instDone; 108 } 109 110 protected: 111 /// A cache of decoded instruction objects. | 38#include "cpu/thread_context.hh" 39 40class ThreadContext; 41 42namespace SparcISA 43{ 44 45class Decoder --- 58 unchanged lines hidden (view full) --- 104 bool 105 instReady() 106 { 107 return instDone; 108 } 109 110 protected: 111 /// A cache of decoded instruction objects. |
112 static DecodeCache defaultCache; | 112 static GenericISA::BasicDecodeCache defaultCache; |
113 114 public: 115 StaticInstPtr decodeInst(ExtMachInst mach_inst); 116 117 /// Decode a machine instruction. 118 /// @param mach_inst The binary instruction to decode. 119 /// @retval A pointer to the corresponding StaticInst object. 120 StaticInstPtr --- 18 unchanged lines hidden --- | 113 114 public: 115 StaticInstPtr decodeInst(ExtMachInst mach_inst); 116 117 /// Decode a machine instruction. 118 /// @param mach_inst The binary instruction to decode. 119 /// @retval A pointer to the corresponding StaticInst object. 120 StaticInstPtr --- 18 unchanged lines hidden --- |