detection of priv v1.11 is based on presence of register that may not be implemented

Aperta
#435 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start by reading the Priv v1.11/v1.12 detection logic that checks mcountinhibit and menvcfg. Update it so menvcfg can establish v1.12 support without requiring the optional mcountinhibit register; done means detection follows the stated compatibility rule and the existing firmware detection tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

mcountinhibit is allowed not to be implemented even with Priv v1.11 compatible cores:

[#norm:mcountinhibit_not_impl]#If the csr:mcountinhibit[] register is not implemented, the implementation behaves as though the register were set to zero.#

The biggest problem with this, is that from what I remember there is no other way to determine presence of v1.11.
In that case I think OpenSBI should assume that if menvcfg is implemented that v1.12 is implemented too, as currently this check requires mcountinhibit to be present.

Lingua principale
C
Stelle
1.6k
Fork
734
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di riscv-software-src/opensbi

Tutte le issue di riscv-software-src/opensbi

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.