mem-ruby: fix whitespacing errors in RubySystem
These errors cause other commits to fail pre-commit Change-Id: I379d2d7c73f88d0bb35de5aaa7d8cb70a83ee1dd Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69397 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
committed by
Matt Sinclair
parent
f7f5b68202
commit
ea623eb6e5
@@ -310,23 +310,24 @@ RubySystem::writeCompressedTrace(uint8_t *raw_data, std::string filename,
|
||||
void
|
||||
RubySystem::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
// Store the cache-block size, so we are able to restore on systems with a
|
||||
// different cache-block size. CacheRecorder depends on the correct
|
||||
// cache-block size upon unserializing.
|
||||
// Store the cache-block size, so we are able to restore on systems
|
||||
// with a different cache-block size. CacheRecorder depends on the
|
||||
// correct cache-block size upon unserializing.
|
||||
uint64_t block_size_bytes = getBlockSizeBytes();
|
||||
SERIALIZE_SCALAR(block_size_bytes);
|
||||
|
||||
// Check that there's a valid trace to use. If not, then memory won't be
|
||||
// up-to-date and the simulation will probably fail when restoring from the
|
||||
// checkpoint.
|
||||
// Check that there's a valid trace to use. If not, then memory won't
|
||||
// be up-to-date and the simulation will probably fail when restoring
|
||||
// from the checkpoint.
|
||||
if (m_cache_recorder == NULL) {
|
||||
fatal("Call memWriteback() before serialize() to create ruby trace");
|
||||
fatal("Call memWriteback() before serialize() to create"
|
||||
"ruby trace");
|
||||
}
|
||||
|
||||
// Aggregate the trace entries together into a single array
|
||||
uint8_t *raw_data = new uint8_t[4096];
|
||||
uint64_t cache_trace_size = m_cache_recorder->aggregateRecords(&raw_data,
|
||||
4096);
|
||||
uint64_t cache_trace_size = m_cache_recorder->aggregateRecords(
|
||||
&raw_data, 4096);
|
||||
std::string cache_trace_file = name() + ".cache.gz";
|
||||
writeCompressedTrace(raw_data, cache_trace_file, cache_trace_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user