This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Harvard proposal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]