Harvard proposal

Andrew Cagney ac131313@cygnus.com
Tue Feb 13 13:22:00 GMT 2001


Nick Duffek wrote:

> The Problem
> ===========
> 
> GDB handles Harvard architectures by mapping instruction and data spaces
> onto a single byte address space.
> 
> For example, d10v-tdep.c performs the following mapping:
>   data: 0x2000000 + addr
>   insn: 0x1000000 + (addr << 2)
> 
> The mapping is user-visible, which I think is problematic because:

Just FYI, while the mapping is user visible it is also very entrenched. 
BFD, which doesn't handle segmentation either, uses that ``cannonical''
address form in its linker scripts and relocations.

	Andrew



More information about the Gdb mailing list