Hello!
I have a very simple question. A lot of Unicorn code I have been studying seems to make sure the start and end of memory regions to be mapped in the emulator using mem_map() are aligned to page boundaries. Is this necessary or a good idea (and if so, why)? Could failing to do this cause strange behavior?
Is there anything mem_map() explicitly or implicitly requires about its memory addresses to be aware about at all? Or are arbitrary byte-level addresses OK?
Hello!
I have a very simple question. A lot of Unicorn code I have been studying seems to make sure the start and end of memory regions to be mapped in the emulator using
mem_map()
are aligned to page boundaries. Is this necessary or a good idea (and if so, why)? Could failing to do this cause strange behavior?Is there anything
mem_map()
explicitly or implicitly requires about its memory addresses to be aware about at all? Or are arbitrary byte-level addresses OK?Thanks in advance for the input!
Joshua