Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemc: move tracefile registration into constructor
The TraceFile object needs to be registered into the scheduler for triggering its trace function. For now only the TraceFile created by sc_create_vcd_trace_file is registered automatically. This design is not good for users to implement their own TraceFile class. In addition, some libraries, ex Verilator, implement thier own trace file. To bridge them into gem5, we also need the ability to create customized TraceFile class. Change-Id: I38fe510048655c6a2cd848a0a1263a66a1778eee Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52923 Reviewed-by: Earl Ou <[email protected]> Reviewed-by: Gabe Black <[email protected]> Maintainer: Gabe Black <[email protected]> Tested-by: kokoro <[email protected]>
- Loading branch information