diff options
author | Radhika Jagtap <radhika.jagtap@ARM.com> | 2015-12-07 16:42:16 -0600 |
---|---|---|
committer | Radhika Jagtap <radhika.jagtap@ARM.com> | 2015-12-07 16:42:16 -0600 |
commit | 54519fd51f739c3a37c4ad712b86a353eabbbfec (patch) | |
tree | 21002ebffe820d302b839ac625636830b141964b /src/cpu/trace/trace_cpu.hh | |
parent | 3080bbcc365e6ed663787a4c06cd2b7c4a118d47 (diff) | |
download | gem5-54519fd51f739c3a37c4ad712b86a353eabbbfec.tar.xz |
cpu: Support virtual addr in elastic traces
This patch adds support to optionally capture the virtual address and asid
for load/store instructions in the elastic traces. If they are present in
the traces, Trace CPU will set those fields of the request during replay.
Diffstat (limited to 'src/cpu/trace/trace_cpu.hh')
-rw-r--r-- | src/cpu/trace/trace_cpu.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cpu/trace/trace_cpu.hh b/src/cpu/trace/trace_cpu.hh index 751321491..bb59c3fab 100644 --- a/src/cpu/trace/trace_cpu.hh +++ b/src/cpu/trace/trace_cpu.hh @@ -596,7 +596,13 @@ class TraceCPU : public BaseCPU RecordType type; /** The address for the request if any */ - Addr addr; + Addr physAddr; + + /** The virtual address for the request if any */ + Addr virtAddr; + + /** The address space id which is set if the virtual address is set */ + uint32_t asid; /** Size of request if any */ uint32_t size; |