From: David Brownell Date: Fri, 6 Nov 2009 22:57:21 +0000 (-0800) Subject: target: don't swap MMU/no-MMU work areas X-Git-Tag: v0.4.0-rc1~887 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=a9abfa7d06dbcfded97b7fb41f50d3581c24fbae;hp=a9abfa7d06dbcfded97b7fb41f50d3581c24fbae target: don't swap MMU/no-MMU work areas Resolve serious bug inserted by the "target: require working area for physical/virtual addresses to be specified" patch. It forced use of (invalid) virtual addresses when the MMU was disabled, and vice versa. Observed to break at least Cortex-M3, ARM926, ARM7TDMI whenever work areas are used, such as during bulk writes to flash, DDR2, SRAM, and so on. Also, fix overlong lines and whitespace goofs. Signed-off-by: David Brownell ---