D'après la spec il est possible pour le matériel de ne supporter que des lectures/écritures alignées - c'est dans ce cas le logiciel qui devra implémenter les accès non-alignés
We do not mandate atomicity for misaligned accesses so simple implementations can just
use a machine trap and software handler to handle misaligned accesses. If hardware misaligned
support is provided, software can exploit this by simply using regular load and store instructions.
Hardware can then automatically optimize accesses depending on whether runtime addresses are
aligned
[^] # Re: À suivre
Posté par Ronan BARZIC . En réponse au journal Sifive Hifive 1 revision B - Présentation de la carte - episode 1. Évalué à 3.
D'après la spec il est possible pour le matériel de ne supporter que des lectures/écritures alignées - c'est dans ce cas le logiciel qui devra implémenter les accès non-alignés
We do not mandate atomicity for misaligned accesses so simple implementations can just
use a machine trap and software handler to handle misaligned accesses. If hardware misaligned
support is provided, software can exploit this by simply using regular load and store instructions.
Hardware can then automatically optimize accesses depending on whether runtime addresses are
aligned