From ea623eb6e5d20dca39d172fea5aa4b1684d3caa7 Mon Sep 17 00:00:00 2001 From: Matt Sinclair Date: Tue, 4 Apr 2023 14:26:47 -0500 Subject: [PATCH] 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 Maintainer: Jason Lowe-Power Reviewed-by: Jason Lowe-Power --- src/mem/ruby/system/RubySystem.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/mem/ruby/system/RubySystem.cc b/src/mem/ruby/system/RubySystem.cc index 91c4bc3903..5a81513720 100644 --- a/src/mem/ruby/system/RubySystem.cc +++ b/src/mem/ruby/system/RubySystem.cc @@ -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);