This is the mail archive of the
sid@sourceware.org
mailing list for the SID project.
[patch][commit] cgen-model.h
- From: Dave Brolley <brolley at redhat dot com>
- To: sid at sources dot redhat dot com
- Date: Thu, 11 May 2006 10:49:54 -0400
- Subject: [patch][commit] cgen-model.h
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
2006-05-11 Dave Brolley <brolley@redhat.com>
* cgen-model.h (cgen_model): Initialize vliw_cycles.
(model_insn_after): Correct comment re: last_p.
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)
{