ecos kernel test: memory access listeners' ranges (high/low) may be equal

Change-Id: I02f53d9d698a56c606ef354a37d7a3c467ec8127
This commit is contained in:
Christoph Borchert
2013-07-22 14:03:20 +02:00
parent 40f610b536
commit eccbc61b1d

View File

@ -485,7 +485,7 @@ bool EcosKernelTestExperiment::faultInjection() {
// FIXME: It would be nice to have a MemAccessListener that accepts a
// MemoryMap, to have MemoryMaps that store addresses in a compact way,
// and that are invertible.
assert(mem1_low < mem1_high && mem1_high < VIDEOMEM_START && VIDEOMEM_END < mem2_low && mem2_low < mem2_high);
assert(mem1_low <= mem1_high && mem1_high < VIDEOMEM_START && VIDEOMEM_END < mem2_low && mem2_low <= mem2_high);
MemAccessListener ev_mem_outside1(0x0, MemAccessEvent::MEM_READWRITE);
ev_mem_outside1.setWatchWidth(mem1_low);
MemAccessListener ev_mem_outside2(mem1_high + 1, MemAccessEvent::MEM_READWRITE);