Fix sample_ctl.py.
Commit640251e1aaadded a size parameter to uc_hook_tcg_op_2, but this was not reflected in the Python bindings. Commitfbf4078d65added a len parameter to ctl_remove_cache, but this was not reflected in sample_ctl.py.
This commit is contained in:
@@ -57,7 +57,7 @@ def test_uc_ctl_tb_cache():
|
||||
|
||||
# Now we clear cache for all TBs.
|
||||
for i in range(8):
|
||||
uc.ctl_remove_cache(addr + i * 512)
|
||||
uc.ctl_remove_cache(addr + i * 512, addr + i * 512 + 1)
|
||||
|
||||
evicted = time_emulation(uc, addr, addr + len(code))
|
||||
|
||||
@@ -66,7 +66,7 @@ def test_uc_ctl_tb_cache():
|
||||
def trace_new_edge(uc, cur, prev, data):
|
||||
print(f">>> Getting a new edge from {hex(prev.pc + prev.size - 1)} to {hex(cur.pc)}")
|
||||
|
||||
def trace_tcg_sub(uc, address, arg1, arg2, data):
|
||||
def trace_tcg_sub(uc, address, arg1, arg2, size, data):
|
||||
print(f">>> Get a tcg sub opcode at {hex(address)} with args: {arg1} and {arg2}")
|
||||
|
||||
def test_uc_ctl_exits():
|
||||
|
||||
Reference in New Issue
Block a user