decoder.hh (11165:d90aec9435bd) | decoder.hh (13583:f7482392b097) |
---|---|
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; --- 32 unchanged lines hidden (view full) --- 41 42class ISA; 43class Decoder 44{ 45 protected: 46 // The extended machine instruction being generated 47 ExtMachInst emi; 48 bool instDone; | 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; --- 32 unchanged lines hidden (view full) --- 41 42class ISA; 43class Decoder 44{ 45 protected: 46 // The extended machine instruction being generated 47 ExtMachInst emi; 48 bool instDone; |
49 MiscReg asi; | 49 RegVal asi; |
50 51 public: 52 Decoder(ISA* isa = nullptr) : instDone(false), asi(0) 53 {} 54 55 void process() {} 56 57 void --- 30 unchanged lines hidden (view full) --- 88 89 bool 90 instReady() 91 { 92 return instDone; 93 } 94 95 void | 50 51 public: 52 Decoder(ISA* isa = nullptr) : instDone(false), asi(0) 53 {} 54 55 void process() {} 56 57 void --- 30 unchanged lines hidden (view full) --- 88 89 bool 90 instReady() 91 { 92 return instDone; 93 } 94 95 void |
96 setContext(MiscReg _asi) | 96 setContext(RegVal _asi) |
97 { 98 asi = _asi; 99 } 100 101 void takeOverFrom(Decoder *old) {} 102 103 protected: 104 /// A cache of decoded instruction objects. --- 27 unchanged lines hidden --- | 97 { 98 asi = _asi; 99 } 100 101 void takeOverFrom(Decoder *old) {} 102 103 protected: 104 /// A cache of decoded instruction objects. --- 27 unchanged lines hidden --- |