sohan@4: /* sohan@4: * Copyright 2011 OpenSourceStewardshipFoundation.org sohan@4: * Licensed under GNU General Public License version 2 sohan@4: */ sohan@4: sohan@4: #ifndef CONTEXT_UNIT_ sohan@4: #define CONTEXT_UNIT_ sohan@4: sohan@4: #include sohan@4: //============================== Structures ============================== sohan@4: struct sohan@4: { sohan@4: bool ReadyForIF; sohan@4: bool InIF; sohan@4: bool DoneWithIF; sohan@4: } sohan@4: IFState; sohan@4: sohan@4: struct sohan@4: { sohan@4: bool ReadyForPipe; sohan@4: bool InPipe; sohan@4: bool DoneWithPipe; sohan@4: } sohan@4: PipeState; sohan@4: sohan@4: struct sohan@4: { sohan@4: bool NotinLdSt; sohan@4: bool InLdSt; sohan@4: } sohan@4: LdStState; sohan@4: sohan@4: struct sohan@4: { sohan@4: struct IFState IF; sohan@4: struct PipeState PS; sohan@4: struct LdStState LS; sohan@4: sohan@4: } sohan@4: FsmState; sohan@4: sohan@4: typedef struct sohan@4: { sohan@4: int ContextId; sohan@4: int CurrentPc; sohan@4: int NewPc; sohan@4: int Instr; sohan@4: struct FsmState FS; sohan@4: } sohan@4: ContextUnit; sohan@4: sohan@4: //============================== Functions ================================ sohan@4: sohan@4: //=========================================================================== sohan@4: sohan@4: #endif /**/ sohan@4: sohan@4: sohan@4: