This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: [patch][rfa]: SID mapper component - wordsize
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Dave Brolley <brolley at redhat dot com>
- Cc: sid at sources dot redhat dot com
- Date: 14 Feb 2003 14:09:35 -0500
- Subject: Re: [patch][rfa]: SID mapper component - wordsize
- References: <3E4C3122.5040409@redhat.com>
brolley wrote:
> [...] The specification
> [4*1000-1010]
> should allow access to the range 4000-4043, however, the upper bound
> is simply being multiplied by the wordsize, resulting in an upper
> bound of 4040.
Actually, addresses in the mapper specs are inclusive, not exclusive.
That's why one often sees ranges ending with ...ffff. Plain raw
scaling such inclusive limits doesn't make sense though, so a special
case calculation like yours would make sense. However, care should be
taken not to confuse exclusive vs inclusive bounds.
> If the mapper is accessed using wordsized elements, the problem goes
> unnoticed, since the mapper does not check the ending address of the
> range being accessed.
That's a peculiar other bug. To be consistent with the byte-oriented
addressing across sid::bus, the size of the access would need to be
included in the checks.
- FChE