Attach MemTracer to SBus , all physical addr hashed between 0X80000000->0X90000000

This commit is contained in:
Vamber Yang
2023-04-05 23:42:41 -07:00
parent bdc32b765f
commit 8e5254292b
3 changed files with 70 additions and 15 deletions

View File

@@ -75,8 +75,8 @@ MemTraceLine MemTraceReader::read_trace_at(const long cycle,
// read it right now.
return MemTraceLine{};
} else if (line.cycle == cycle && line.lane_id == lane_id) {
printf("fire! cycle=%ld, valid=%d, %s \n", cycle, line.valid,
line.loadstore);
printf("fire! cycle=%ld, valid=%d, %s addr=%x \n", cycle, line.valid,
line.loadstore, line.address);
// FIXME! Currently lane_id is assumed to be in round-robin order, e.g.
// 0->1->2->3->0->..., both in the trace file and the order the caller calls