Re: OS-A platform stoptime requirement
toggle quoted message Show quoted text
I think there's a little bit of confusion going on. The 'stoptime' bit is defined as "Don’t increment any hart-local timers while in Debug Mode." I take this to clearly not be referring to MTIME, but to the local time CSR.
I fully agree that expecting a debug action on a core to have to reach out to wherever in a system MTIME may be, is inappropriate. Which also affects other still active harts - which is probably very inappropriate (i.e. debugging just one hart shouldn't inherently affect operation of all harts).
Whereas stopping the local time CSR for the duration of being in Debug mode would be easy to implement, i.e. in_debug_mode inhibits the time CSR from advancing. Presumably, once the hart exits Debug mode, the time CSR effectively immediately catches back up with the current time value that has been broadcast to it from MTIME.
On Mon, Dec 20, 2021 at 1:19 PM Andrew Waterman <andrew@...> wrote: