public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Possible typo in hal/arm/arm9/var/current/include/hal_cache.h
@ 2003-01-07 18:53 Patrick Doyle
  2003-01-07 20:18 ` Jonathan Larmour
  0 siblings, 1 reply; 9+ messages in thread
From: Patrick Doyle @ 2003-01-07 18:53 UTC (permalink / raw)
  To: eCos

Can somebody (jskov perhaps, since your name is in the ChangeLog) tell me
the source of the data for the ARM925T cache configuration?  I am asking
because the #defines in this file don't match the documentation I have from
TI.  I will ask TI as well, but in the mean time, here is what the file
says:

# define HAL_ICACHE_SIZE                 0x4000
# define HAL_ICACHE_LINE_SIZE            32
# define HAL_ICACHE_WAYS                 2
# define HAL_ICACHE_SETS
(HAL_ICACHE_SIZE/(HAL_ICACHE_LINE_SIZE*HAL_ICACHE_WAYS))

And here is what the TI documentation (somewhat ambiguously) says:

"The 16K-byte instruction cache (I-cache) has 1024 lines of 16 bytes
arranged as a two-way set-associative cache."

These two pieces of information clearly differ in the definition of the line
size.  Also, my first read of the TI documentation made me think there were
1024 lines in each set, but the math doesn't work out for that.  Instead, I
think there are 1024 lines total, 512 in each set.  Regardless, these don't
match the 256 sets defined by HAL_ICACHE_SETS.

Anyway, I thought I would ask here as well as at TI.  All comments are
welcome.

--wpd


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-01-08 14:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-07 18:53 [ECOS] Possible typo in hal/arm/arm9/var/current/include/hal_cache.h Patrick Doyle
2003-01-07 20:18 ` Jonathan Larmour
2003-01-07 20:24   ` Gary D. Thomas
2003-01-07 21:00     ` Patrick Doyle
2003-01-07 21:14       ` Gary D. Thomas
2003-01-07 21:31         ` [ECOS] Possible typo inhal/arm/arm9/var/current/include/hal_cache.h Patrick Doyle
2003-01-07 21:36           ` Gary D. Thomas
2003-01-07 21:39             ` Jonathan Larmour
2003-01-08 14:31               ` [ECOS] Possible typo in hal/arm/arm9/var/current/include/hal_cache.h Patrick Doyle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).