Revise handling of memory mapping.
Add definitions for exception unit.