mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-05 19:29:06 +00:00
Don't bother prepropulating for writes.
This commit is contained in:
parent
413e7b7de1
commit
f608153c1a
@ -302,7 +302,12 @@ struct Memory {
|
|||||||
write_back_address_[1] = high_address;
|
write_back_address_[1] = high_address;
|
||||||
tags[low_address] = tag;
|
tags[low_address] = tag;
|
||||||
tags[high_address] = tag;
|
tags[high_address] = tag;
|
||||||
write_back_value_ = memory[write_back_address_[0]] | (memory[write_back_address_[1]] << 8);
|
|
||||||
|
// Prepopulate only if this is a modify.
|
||||||
|
if constexpr (type == AccessType::ReadModifyWrite) {
|
||||||
|
write_back_value_ = memory[write_back_address_[0]] | (memory[write_back_address_[1]] << 8);
|
||||||
|
}
|
||||||
|
|
||||||
return write_back_value_;
|
return write_back_value_;
|
||||||
} else {
|
} else {
|
||||||
return memory[low_address] | (memory[high_address] << 8);
|
return memory[low_address] | (memory[high_address] << 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user