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" |
39#include "base/types.hh" |
40#include "cpu/static_inst.hh" |
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. |
126 static GenericISA::BasicDecodeCache defaultCache; |
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 --- |