xtensa: simplify detection of memory zone boundaries