sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Matrix: #riscv:catircservices.org
KombuchaKip has quit [Quit: Leaving.]
heat has joined #riscv
madge has joined #riscv
drmpeg has quit [Ping timeout: 246 seconds]
Noisytoot has quit [Excess Flood]
heat has quit [Read error: Connection reset by peer]
heat_ has joined #riscv
drmpeg has joined #riscv
Noisytoot has joined #riscv
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
MaxGanzII_ has quit [Ping timeout: 246 seconds]
vagrantc has quit [Quit: leaving]
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
jacklsw has joined #riscv
KombuchaKip has joined #riscv
jljusten has quit [Ping timeout: 246 seconds]
KombuchaKip has quit [Quit: Leaving.]
KombuchaKip has joined #riscv
jljusten has joined #riscv
davidlt has joined #riscv
billchenchina has joined #riscv
ntwk has quit [Quit: ntwk]
heat_ has quit [Ping timeout: 256 seconds]
guerby_ has quit [Read error: Connection reset by peer]
stolen has joined #riscv
Valeria22 has quit [Quit: Konversation terminated!]
davidlt has quit [Ping timeout: 248 seconds]
GenTooMan has quit [Ping timeout: 248 seconds]
GenTooMan has joined #riscv
billchenchina has quit [Ping timeout: 260 seconds]
GenTooMan has quit [Ping timeout: 248 seconds]
MarvelousWololo has quit [Quit: MarvelousWololo]
billchenchina has joined #riscv
Armand has quit [Ping timeout: 245 seconds]
GenTooMan has joined #riscv
junaid_ has joined #riscv
junaid__ has joined #riscv
GenTooMan has quit [Ping timeout: 246 seconds]
junaid_ has quit [Remote host closed the connection]
valdemaras has joined #riscv
junaid__ has quit [Quit: leaving]
GenTooMan has joined #riscv
davidlt has joined #riscv
joev1 has quit [Ping timeout: 256 seconds]
joev1 has joined #riscv
jacklsw has quit [Ping timeout: 256 seconds]
davidlt_ has joined #riscv
davidlt has quit [Read error: Connection reset by peer]
joev1 has quit [Ping timeout: 245 seconds]
joev1 has joined #riscv
smaeul_ has joined #riscv
smaeul has quit [Ping timeout: 244 seconds]
valdemaras has quit [Ping timeout: 250 seconds]
BootLayer has joined #riscv
stolen has quit [Quit: Connection closed for inactivity]
davidlt_ is now known as davidlt
MaxGanzII_ has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
jacklsw has joined #riscv
ezulian has joined #riscv
MaxGanzII_ has quit [Ping timeout: 246 seconds]
danilogondolfo has joined #riscv
elastic_dog has quit [Ping timeout: 244 seconds]
prabhakarlad has joined #riscv
MaxGanzII_ has joined #riscv
elastic_dog has joined #riscv
Trigraph has joined #riscv
iooi has quit [Read error: Connection reset by peer]
iooi has joined #riscv
<Trigraph> i came across this section : "An interrupt i will be taken if bit i is set in both mip and mie, and if interrupts are globally enabled.
<Trigraph> By default, M-mode interrupts are globally enabled if the hart’s current privilege mode is less than
<Trigraph> M, or if the current privilege mode is M and the MIE bit in the mstatus register is set. If bit i
<Trigraph> in mideleg is set, however, interrupts are considered to be globally enabled if the hart’s current
<Trigraph> privilege mode equals the delegated privilege mode (S or U) and that mode’s interrupt enable bit
<Trigraph> (SIE or UIE in mstatus) is set, or if the current privilege mode is less than the delegated privilege
<Trigraph> mode."
<Trigraph> Does this imply that when timer interrupts are routed to machine mode there is no need to set MTIE ?
<jrtc27> depends if you want to take timer interrupts while you're in machine mode or only when in supervisor/user mode
<jrtc27> oh
<jrtc27> well MTIP takes effect regardless of what mode you're in
<Trigraph> perhaps a hangover from arm days but i am confused by the use of term "globally enabled" in the above statement.
<jrtc27> MIE in mstatus is like the I in DAIF
<jrtc27> if that helps
<jrtc27> "have you turned off all interrupts (likely because you're in a critical section)" vs "have you turned off this specific interrupt"
<Trigraph> is the global enable controlled by some other bit in CSR's ?
<jrtc27> that *is* the xIE bit
<Trigraph> ah
<jrtc27> xstatus.xIE: block or allow interrupts whilst executing in mode x
<jrtc27> xie.y: block interrupt y
<jrtc27> note that xIE is per-mode, whilst xie.y is shared across all modes (that have it delegated)
<jrtc27> hence why the former only applies to mode x but the latter applies to all mode
<jrtc27> *s
<Trigraph> i was confused about a separate global enable because of the 'and' clause in this statement "An interrupt i will be taken if bit i is set in both mip and mie, and if interrupts are globally enabled"
<jrtc27> so, RISC-V is unhelpful
<jrtc27> mie there is the CSR "mie"
<jrtc27> MIE earlier is the "MIE" bit in the CSR "mstatus"
<jrtc27> if that's where the confusion came from
<Trigraph> ah yes
<Trigraph> let me re-read again to make sure i understand
<jrtc27> i.e. "An interrupt i will be taken if bit i is set in both mip and mie" -> mip[i] & mie[i] != 0 ; "and if interrupts are globally enabled" -> mstatus.MIE != 0
<jrtc27> well, mstatus.MIE != 0 || cur_priv < M
<Trigraph> ;)
valdemaras has joined #riscv
MaxGanzII_ has quit [Remote host closed the connection]
Kedleston has quit [Ping timeout: 258 seconds]
jacklsw has quit [Ping timeout: 250 seconds]
Kedleston has joined #riscv
phoooo has joined #riscv
phoooo has quit [Quit: Client closed]
prabhakarlad has quit [Quit: Client closed]
pecastro has joined #riscv
pecastro has quit [Ping timeout: 248 seconds]
unlord has quit [Ping timeout: 248 seconds]
valdemaras has quit [Quit: valdemaras]
unlord has joined #riscv
Trigraph has quit [Ping timeout: 258 seconds]
Andre_Z has joined #riscv
zjason` is now known as zjason
Tenkawa has joined #riscv
ntwk has joined #riscv
ntwk has quit [Read error: Connection reset by peer]
ntwk has joined #riscv
jobol has joined #riscv
Stat_headcrabed has joined #riscv
junaid_ has joined #riscv
wingsorc has joined #riscv
junaid__ has joined #riscv
junaid_ has quit [Remote host closed the connection]
junaid__ has quit [Client Quit]
Andre_Z has quit [Remote host closed the connection]
junaid_ has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
BootLayer has quit [Ping timeout: 245 seconds]
jacklsw has joined #riscv
jacklsw has joined #riscv
JanC has quit [Remote host closed the connection]
JanC has joined #riscv
jacklsw has quit [Quit: Back to the real world]
BootLayer has joined #riscv
stolen has joined #riscv
junaid_ has quit [Remote host closed the connection]
jacklsw has joined #riscv
Valeria22 has joined #riscv
ntwk has quit [Quit: ntwk]
Armand has joined #riscv
MarvelousWololo has joined #riscv
MarvelousWololo has quit [Remote host closed the connection]
aburgess_ has quit [Ping timeout: 245 seconds]
ntwk has joined #riscv
djdelorie has quit [Quit: Leaving]
crabbedhaloablut has joined #riscv
djdelorie has joined #riscv
jacklsw has quit [Ping timeout: 248 seconds]
jobol has quit [Quit: Leaving]
elastic_dog has quit [Ping timeout: 246 seconds]
elastic_dog has joined #riscv
billchenchina has quit [Ping timeout: 256 seconds]
heat_ has joined #riscv
heat_ has quit [Remote host closed the connection]
junaid_ has joined #riscv
wingsorc has quit [Quit: Leaving]
ezulian has quit [Ping timeout: 244 seconds]
MaxGanzII has joined #riscv
Andre_Z has joined #riscv
BootLayer has quit [Quit: Leaving]
junaid_ has quit [Ping timeout: 246 seconds]
ezulian has joined #riscv
Andre_Z has quit [Quit: Leaving.]
junaid_ has joined #riscv
aburgess_ has joined #riscv
junaid_ has quit [Remote host closed the connection]
davidlt has quit [Ping timeout: 246 seconds]
junaid_ has joined #riscv
ezulian has quit [Ping timeout: 246 seconds]
crabbedhaloablut has quit []
stolen has quit [Quit: Connection closed for inactivity]
MaxGanzII has quit [Remote host closed the connection]
MaxGanzII has joined #riscv
Kedleston_ has joined #riscv
Kedleston has quit [Ping timeout: 246 seconds]
Kedleston_ is now known as Kedleston
junaid_ has quit [Ping timeout: 245 seconds]
MoeIcenowy has quit [Ping timeout: 246 seconds]
zjason` has joined #riscv
zjason has quit [Ping timeout: 256 seconds]
iooi has quit [Quit: iooi]
iooi has joined #riscv
MoeIcenowy has joined #riscv
danilogondolfo has quit [Quit: Leaving]
jmdaemon has joined #riscv
paulk has quit [Ping timeout: 244 seconds]
paulk has joined #riscv
ntwk has quit [Quit: ntwk]
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
leah2 has quit [Ping timeout: 248 seconds]
leah2 has joined #riscv
heat has joined #riscv
ntwk has joined #riscv