Skip to content

Commit

Permalink
swithc pc and addr
Browse files Browse the repository at this point in the history
  • Loading branch information
nerokapa committed Apr 23, 2018
1 parent a82df21 commit 8718a70
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sim/ooo_cpu.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "ooo_cpu.h"

static u64 addr_made = 0x90328402;
// CPUEventData::CPUEventData(const TraceFormat & t): opcode(t.opcode),
CPUEventData::CPUEventData(const TraceFormat & t): PC(t.pc) {
//dummy opcode
Expand Down Expand Up @@ -60,8 +61,8 @@ void SequentialCPU::proc(u64 tick, EventDataBase* data, EventType type) {
case WriteBack : {
for (int i = 0; i < NUM_INSTR_DESTINATIONS; i++) {
if (event_data->destination_memory[i] != 0) {
MemoryAccessInfo writeback_info(event_data->PC,
event_data->destination_memory[i]);
MemoryAccessInfo writeback_info(event_data->destination_memory[i],
event_data->PC);
_memory_connector->issue_memory_access(writeback_info, nullptr);
}
}
Expand Down Expand Up @@ -89,8 +90,8 @@ void SequentialCPU::proc(u64 tick, EventDataBase* data, EventType type) {
} else {
for (int i = 0; i < NUM_INSTR_SOURCES; i++) {
if (cpu_event_data->source_memory[i] != 0) {
MemoryAccessInfo read_info(cpu_event_data->PC,
cpu_event_data->source_memory[i]);
MemoryAccessInfo read_info(cpu_event_data->source_memory[i],
cpu_event_data->PC);
_memory_connector->issue_memory_access(read_info, cpu_event_data);
}
}
Expand Down
Binary file removed traces/gcc_make.trace.gz
Binary file not shown.
Binary file removed traces/gzip.trace.gz
Binary file not shown.
Binary file removed traces/ls_trace.trace.gz
Binary file not shown.
Binary file removed traces/ps_trace.trace.gz
Binary file not shown.

0 comments on commit 8718a70

Please sign in to comment.