Skip to content

Commit

Permalink
Merge pull request #2 from cromulencellc/larkwiot-patch-2
Browse files Browse the repository at this point in the history
Memory filters should get write event before write
  • Loading branch information
larkwiot authored Oct 7, 2021
2 parents 8637096 + 1738167 commit 4541e15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ public int getChunk(byte[] res, AddressSpace spc, long off, int size,

@Override
public void setChunk(byte[] res, AddressSpace spc, long off, int size) {
super.setChunk(res, spc, off, size);
if (filterEnabled && filter != null) {
filterEnabled = false;
filter.filterWrite(spc, off, size, res);
filterEnabled = true;
}
super.setChunk(res, spc, off, size);
}

MemoryAccessFilter setFilter(MemoryAccessFilter filter) {
Expand Down

0 comments on commit 4541e15

Please sign in to comment.