OSDN Git Service

* add "trace-filename" attribute to cgen-cpu components.
authorbje <bje>
Thu, 14 Mar 2002 00:16:25 +0000 (00:16 +0000)
committerbje <bje>
Thu, 14 Mar 2002 00:16:25 +0000 (00:16 +0000)
commitc88b153a71f7e2747092ef29190dd161836dedaa
tree25783ceeb42e53e2386990be3239090f922c91ea
parent66021a53e42602c7eb5af5a3e52cf2843954a9df
* add "trace-filename" attribute to cgen-cpu components.

[include/ChangeLog]
2002-03-14  Ben Elliston  <bje@redhat.com>

* sidcpuutil.h (class basic_cpu): Add trace_filename member and a
new cpu_trace_stream inner class, derived from an ofstream.
(basic_cpu::trace_stream): Use a cpu_trace_stream.
(basic_cpu::update_trace_destination): New method.
(basic_cpu ctor): Initialise trace_stream and trace_filename. Add
attribute "trace-filename" that notifies update_trace_destination.
(operator <<): Add global function for cpu_trace_stream insertion.

[component/cgen-cpu/ChangeLog]
2002-03-14  Ben Elliston  <bje@redhat.com>

* common-xml/behavior.xml (tracing): New behavior section.
* common-xml/interface.xml (trace-filename): New attribute.
(trace-extract?): Associate with "tracing" behavior.
(trace-result?): Likewise.
sid/component/cgen-cpu/ChangeLog
sid/component/cgen-cpu/common-xml/behavior.xml
sid/component/cgen-cpu/common-xml/interface.xml
sid/include/ChangeLog
sid/include/sidcpuutil.h