Change the target area of malloc to something more akin to the heap area for a CPU userspace program, since that works better with Chipyard's default memory mapping scheme (0x80000000 and above).
Device address should not be compared against LOCAL_MEM_SIZE but against an absolute max address. Introduce new DEVICE_MAX_ADDR for this.