Liste des Groupes | Revenir à c arch |
On 1/3/25 12:24 PM, Scott Lurndal wrote:And you would be wrong, at least back in the "old days" when I wrote drivers for some such devices.EricP <ThatWouldBeTelling@thevillage.com> writes:[snip]It is not clear to me that Memory-Mapped I/O requiresFor MMIO device registers I think having an explicit SPCB instruction>
might be better than putting a "no-speculate" flag on the PTE for the
device register address as that flag would be difficult to propagate
backwards from address translate to all the parts of the core that
we might have to sync with.
MMIO accesses are, by definition, non-cachable, which is typically
designated in either a translation table entry or associated
attribute registers (MTTR, MAIR). Non-cacheable accesses
are not speculatively executed, which provides the
correct semantics for device registers which have side effects
on read accesses.
non-cacheable accesses. Some addresses within I/O device
address areas do not have access side effects. I would **GUESS**
that most I/O addresses do not have read side effects.
Les messages affichés proviennent d'usenet.