[patch][commit] cgen-model.h

Dave Brolley <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
I've committed the attached patch which initializes the existing member 
cgen_model::vliw_cycles and corrects a comment regarding the argument 
last_p to the method cgen_model::model_insn_after.

Dave
sid-model.ChangeLog (text/plain, 151 B)
2006-05-11  Dave Brolley  <[email protected]>

	* cgen-model.h (cgen_model): Initialize vliw_cycles.
	(model_insn_after): Correct comment re: last_p.
sid-model.patch.txt (text/plain, 1.6 KB)
Index: sid/component/cgen-cpu/cgen-model.h
===================================================================
RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-model.h,v
retrieving revision 1.2
diff -c -p -r1.2 cgen-model.h
*** sid/component/cgen-cpu/cgen-model.h	21 Oct 2003 21:29:31 -0000	1.2
--- sid/component/cgen-cpu/cgen-model.h	11 May 2006 14:43:39 -0000
*************** namespace cgen
*** 16,22 ****
  class cgen_model
  {
  public:
!   cgen_model (cgen_bi_endian_cpu *c) : cpu (c) {}
  
    // To be overridden as needed. Call before each insn is executed. first_p is
    // true when the insn is the first of a group of parallel insns.
--- 16,25 ----
  class cgen_model
  {
  public:
!   cgen_model (cgen_bi_endian_cpu *c) :
!     cpu (c),
!     vliw_cycles (0)
!   {}
  
    // To be overridden as needed. Call before each insn is executed. first_p is
    // true when the insn is the first of a group of parallel insns.
*************** public:
*** 31,37 ****
    }
  
    // To be overridden as needed. Call after each insn is executed. last_p is
!   // true when the insn is the first of a group of parallel insns. cycles is the
    // number of cycles used by each particular insn.
    virtual void model_insn_after (bool last_p = true, sid::host_int_4 cycles = 1)
      {
--- 34,40 ----
    }
  
    // To be overridden as needed. Call after each insn is executed. last_p is
!   // true when the insn is the last of a group of parallel insns. cycles is the
    // number of cycles used by each particular insn.
    virtual void model_insn_after (bool last_p = true, sid::host_int_4 cycles = 1)
      {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.