Simplify violation hook API

This commit is contained in:
momo5502
2025-04-05 10:01:28 +02:00
parent 0fbb7a2e0d
commit a336bdf2af
3 changed files with 4 additions and 15 deletions

View File

@@ -277,12 +277,8 @@ namespace icicle
// throw std::runtime_error("Not implemented");
}
emulator_hook* hook_memory_violation(const uint64_t address, const size_t size,
memory_violation_hook_callback callback) override
emulator_hook* hook_memory_violation(memory_violation_hook_callback callback) override
{
(void)address;
(void)size;
auto obj = make_function_object(std::move(callback));
auto* ptr = obj.get();
auto* wrapper =