refactor(cpu): account for timing in bus-access order
This commit is contained in:
parent
86321f0071
commit
7f3ebd3a5d
14 changed files with 626 additions and 65 deletions
|
|
@ -83,6 +83,12 @@ impl Cpu {
|
|||
memory.fetch_instruction(pc, instruction_set),
|
||||
memory.fetch_instruction(pc.wrapping_add(instruction_set.width()), instruction_set),
|
||||
];
|
||||
for (sample, kind) in fetches
|
||||
.iter()
|
||||
.zip([AccessKind::NonSequential, AccessKind::Sequential])
|
||||
{
|
||||
memory.record_code_access(sample.address(), instruction_set.access_width(), kind);
|
||||
}
|
||||
memory.refill_cpu_bus_history(&fetches);
|
||||
self.pipeline = Some(Pipeline {
|
||||
pc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue