decoder.hh (9024:5851586f399c) | decoder.hh (9377:6f294e7a93d1) |
---|---|
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; --- 22 unchanged lines hidden (view full) --- 31#ifndef __ARCH_ALPHA_DECODER_HH__ 32#define __ARCH_ALPHA_DECODER_HH__ 33 34#include "arch/generic/decode_cache.hh" 35#include "arch/types.hh" 36#include "cpu/static_inst.hh" 37#include "sim/full_system.hh" 38 | 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; --- 22 unchanged lines hidden (view full) --- 31#ifndef __ARCH_ALPHA_DECODER_HH__ 32#define __ARCH_ALPHA_DECODER_HH__ 33 34#include "arch/generic/decode_cache.hh" 35#include "arch/types.hh" 36#include "cpu/static_inst.hh" 37#include "sim/full_system.hh" 38 |
39class ThreadContext; 40 | |
41namespace AlphaISA 42{ 43 44class Decoder 45{ 46 protected: | 39namespace AlphaISA 40{ 41 42class Decoder 43{ 44 protected: |
47 ThreadContext *tc; 48 | |
49 // The extended machine instruction being generated 50 ExtMachInst ext_inst; 51 bool instDone; 52 53 public: | 45 // The extended machine instruction being generated 46 ExtMachInst ext_inst; 47 bool instDone; 48 49 public: |
54 Decoder(ThreadContext * _tc) : tc(_tc), instDone(false) | 50 Decoder() : instDone(false) |
55 {} 56 | 51 {} 52 |
57 ThreadContext * 58 getTC() 59 { 60 return tc; 61 } 62 | |
63 void | 53 void |
64 setTC(ThreadContext * _tc) 65 { 66 tc = _tc; 67 } 68 69 void | |
70 process() 71 { } 72 73 void 74 reset() 75 { 76 instDone = false; 77 } --- 53 unchanged lines hidden --- | 54 process() 55 { } 56 57 void 58 reset() 59 { 60 instDone = false; 61 } --- 53 unchanged lines hidden --- |