* [patch][commit] cgen-model.h
@ 2006-05-11 14:50 Dave Brolley
0 siblings, 0 replies; only message in thread
From: Dave Brolley @ 2006-05-11 14:50 UTC (permalink / raw)
To: sid
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
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
[-- Attachment #2: sid-model.ChangeLog --]
[-- Type: text/plain, Size: 151 bytes --]
2006-05-11 Dave Brolley <brolley@redhat.com>
* cgen-model.h (cgen_model): Initialize vliw_cycles.
(model_insn_after): Correct comment re: last_p.
[-- Attachment #3: sid-model.patch.txt --]
[-- Type: text/plain, Size: 1619 bytes --]
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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-11 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-11 14:50 [patch][commit] cgen-model.h Dave Brolley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).