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; --- 21 unchanged lines hidden (view full) --- 30 31#ifndef __ARCH_ARM_DECODER_HH__ 32#define __ARCH_ARM_DECODER_HH__ 33 34#include <cassert> 35 36#include "arch/arm/miscregs.hh" 37#include "arch/arm/types.hh" | 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; --- 21 unchanged lines hidden (view full) --- 30 31#ifndef __ARCH_ARM_DECODER_HH__ 32#define __ARCH_ARM_DECODER_HH__ 33 34#include <cassert> 35 36#include "arch/arm/miscregs.hh" 37#include "arch/arm/types.hh" |
38#include "arch/generic/decode_cache.hh" |
|
38#include "base/types.hh" | 39#include "base/types.hh" |
39#include "cpu/decode_cache.hh" | 40#include "cpu/static_inst.hh" |
40 41class ThreadContext; 42 43namespace ArmISA 44{ 45 46class Decoder 47{ --- 69 unchanged lines hidden (view full) --- 117 118 int getInstSize() const 119 { 120 return (!emi.thumb || emi.bigThumb) ? 4 : 2; 121 } 122 123 protected: 124 /// A cache of decoded instruction objects. | 41 42class ThreadContext; 43 44namespace ArmISA 45{ 46 47class Decoder 48{ --- 69 unchanged lines hidden (view full) --- 118 119 int getInstSize() const 120 { 121 return (!emi.thumb || emi.bigThumb) ? 4 : 2; 122 } 123 124 protected: 125 /// A cache of decoded instruction objects. |
125 static DecodeCache defaultCache; | 126 static GenericISA::BasicDecodeCache defaultCache; |
126 127 public: 128 StaticInstPtr decodeInst(ExtMachInst mach_inst); 129 130 /// Decode a machine instruction. 131 /// @param mach_inst The binary instruction to decode. 132 /// @retval A pointer to the corresponding StaticInst object. 133 StaticInstPtr --- 28 unchanged lines hidden --- | 127 128 public: 129 StaticInstPtr decodeInst(ExtMachInst mach_inst); 130 131 /// Decode a machine instruction. 132 /// @param mach_inst The binary instruction to decode. 133 /// @retval A pointer to the corresponding StaticInst object. 134 StaticInstPtr --- 28 unchanged lines hidden --- |