Align hid test addr to prevent undefined behavior
The behavior of unaligned reads and writes for two and four byte
accesses is undefined. Adjust the test address to a 4 byte boundary
so these accesses are aligned.
This fixes hid test failures on the READ32/WRITE32 and READ16/WRITE16
tests cases in hid_test.py.
@@ -44,7 +44,7 @@ def test_hid(workspace, parent_test):
ram_region = ram_regions[0]
rom_region = memory_map.getBootMemory()
- addr = ram_region.start + 1
+ addr = ram_region.start + 4
size = 0x502
addr_bin = rom_region.start
addr_flash = rom_region.start + rom_region.length // 2
