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