CacheRecorder.cc (10301:44839e8febbd) CacheRecorder.cc (10302:0e9e99e6369a)
1/*
2 * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
3 * Copyright (c) 2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 129 unchanged lines hidden (view full) ---

138 m_bytes_read += (sizeof(TraceRecord) + m_block_size_bytes);
139 m_records_read++;
140 }
141}
142
143void
144CacheRecorder::addRecord(int cntrl, const physical_address_t data_addr,
145 const physical_address_t pc_addr,
1/*
2 * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
3 * Copyright (c) 2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 129 unchanged lines hidden (view full) ---

138 m_bytes_read += (sizeof(TraceRecord) + m_block_size_bytes);
139 m_records_read++;
140 }
141}
142
143void
144CacheRecorder::addRecord(int cntrl, const physical_address_t data_addr,
145 const physical_address_t pc_addr,
146 RubyRequestType type, Time time, DataBlock& data)
146 RubyRequestType type, Tick time, DataBlock& data)
147{
148 TraceRecord* rec = (TraceRecord*)malloc(sizeof(TraceRecord) +
149 m_block_size_bytes);
150 rec->m_cntrl_id = cntrl;
151 rec->m_time = time;
152 rec->m_data_address = data_addr;
153 rec->m_pc_address = pc_addr;
154 rec->m_type = type;

--- 41 unchanged lines hidden ---
147{
148 TraceRecord* rec = (TraceRecord*)malloc(sizeof(TraceRecord) +
149 m_block_size_bytes);
150 rec->m_cntrl_id = cntrl;
151 rec->m_time = time;
152 rec->m_data_address = data_addr;
153 rec->m_pc_address = pc_addr;
154 rec->m_type = type;

--- 41 unchanged lines hidden ---