]> git.sur5r.net Git - openocd/commit
target: Add 64-bit target address support
authorDongxue Zhang <elta.era@gmail.com>
Mon, 23 Sep 2013 08:27:03 +0000 (16:27 +0800)
committerMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Fri, 10 Feb 2017 12:50:17 +0000 (13:50 +0100)
commit47b8cf84202bf792cf66fbfa01169e9592236b8a
treed1935dde99235aa94963fbf51b0f8f59f52398d1
parent0ecee8326608a070b476a757cf517d0f50b5ca07
target: Add 64-bit target address support

Define a target_addr_t type to support 32-bit and 64-bit addresses at
the same time. Also define matching TARGET_PRI*ADDR format macros as
well as a convenient TARGET_ADDR_FMT.

In targets that are 32-bit (avr32, nds32, arm7/9/11, fm4, xmc1000)
be least invasive by leaving the formatting unchanged apart from the
type;
for generic code adopt TARGET_ADDR_FMT as unified address format.

Don't silently change gdb formatting here, leave that to later.

Add COMMAND_PARSE_ADDRESS() macro to abstract the address type.
Implement it using its own parse_target_addr() function, in the hopes
of catching pointer type mismatches better.

Add '--disable-target64' configure option to revert to previous 32-bit
target address behavior.

Change-Id: I2e91d205862ceb14f94b3e72a7e99ee0373a85d5
Signed-off-by: Dongxue Zhang <elta.era@gmail.com>
Signed-off-by: David Ung <david.ung.42@gmail.com>
[AF: Default to enabling (Paul Fertser), rename macros, simplify]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
68 files changed:
configure.ac
src/flash/nor/cfi.c
src/flash/nor/fm4.c
src/flash/nor/lpc2000.c
src/flash/nor/lpcspifi.c
src/flash/nor/xmc1xxx.c
src/helper/command.c
src/helper/command.h
src/helper/types.h
src/jtag/aice/aice_pipe.c
src/jtag/aice/aice_port.h
src/jtag/aice/aice_usb.c
src/rtos/linux.c
src/server/gdb_server.c
src/target/algorithm.h
src/target/arm.h
src/target/arm11.c
src/target/arm720t.c
src/target/arm7_9_common.c
src/target/arm7_9_common.h
src/target/arm920t.c
src/target/arm920t.h
src/target/arm926ejs.c
src/target/arm926ejs.h
src/target/arm946e.c
src/target/armv4_5.c
src/target/armv4_5_mmu.h
src/target/armv7a.h
src/target/armv7a_cache_l2x.c
src/target/armv7a_cache_l2x.h
src/target/armv7m.c
src/target/armv7m.h
src/target/avr32_ap7k.c
src/target/avrt.c
src/target/breakpoints.c
src/target/breakpoints.h
src/target/cortex_a.c
src/target/cortex_m.c
src/target/dsp563xx.c
src/target/dsp5680xx.c
src/target/feroceon.c
src/target/hla_target.c
src/target/image.h
src/target/lakemont.c
src/target/lakemont.h
src/target/ls1_sap.c
src/target/mips32.c
src/target/mips32.h
src/target/mips32_pracc.c
src/target/mips_m4k.c
src/target/nds32.c
src/target/nds32.h
src/target/nds32_aice.c
src/target/nds32_aice.h
src/target/nds32_tlb.c
src/target/nds32_tlb.h
src/target/nds32_v2.c
src/target/nds32_v3.c
src/target/nds32_v3_common.c
src/target/nds32_v3_common.h
src/target/nds32_v3m.c
src/target/openrisc/or1k.c
src/target/target.c
src/target/target.h
src/target/target_type.h
src/target/x86_32_common.c
src/target/x86_32_common.h
src/target/xscale.c