1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46#include <sstream> 47 48#include "arch/alpha/faults.hh" 49#include "arch/alpha/types.hh" 50#include "config/ss_compatible_fp.hh" 51#include "cpu/static_inst.hh" 52#include "mem/packet.hh" 53#include "mem/request.hh" // some constructors use MemReq flags |
54#include "sim/byteswap.hh" 55 |
56}}; 57 58output decoder {{ 59#include <cmath> 60 61#include "arch/alpha/decoder.hh" 62#include "arch/alpha/registers.hh" 63#include "arch/alpha/regredir.hh" |
64#include "base/cprintf.hh" 65#include "base/fenv.hh" |
66#include "base/loader/symtab.hh" |
67#include "config/ss_compatible_fp.hh" 68#include "cpu/thread_context.hh" // for Jump::branchTarget() 69#include "mem/packet.hh" 70#include "sim/full_system.hh" 71 72using namespace AlphaISA; 73}}; 74 --- 141 unchanged lines hidden (view full) --- 216// #define SS_COMPATIBLE_DISASSEMBLY 217 218 /** 219 * Base class for all Alpha static instructions. 220 */ 221 class AlphaStaticInst : public StaticInst 222 { 223 protected: |
224 /// Constructor. 225 AlphaStaticInst(const char *mnem, ExtMachInst _machInst, 226 OpClass __opClass) 227 : StaticInst(mnem, _machInst, __opClass) 228 { 229 } 230 231 /// Print a register name for disassembly given the unique 232 /// dependence tag number (FP or int). 233 void printReg(std::ostream &os, RegId reg) const; 234 235 std::string 236 generateDisassembly(Addr pc, const SymbolTable *symtab) const; 237 238 void 239 advancePC(AlphaISA::PCState &pcState) const 240 { 241 pcState.advance(); 242 } |
243 244 public: 245 size_t 246 asBytes(void *buf, size_t max_size) override 247 { 248 return simpleAsBytes(buf, max_size, machInst); 249 } |
250 }; 251}}; 252 253output decoder {{ 254 void 255 AlphaStaticInst::printReg(std::ostream &os, RegId reg) const 256 { 257 if (reg.isIntReg()) { --- 216 unchanged lines hidden --- |