Giter Site home page Giter Site logo

riscv-count-overflow's Introduction

riscv-count-overflow

Working draft of the proposed RISC-V Sscofpmf extension.

riscv-count-overflow's People

Contributors

jjscheel avatar jscheid-ventana avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

riscv-count-overflow's Issues

Interrupt Overflow

Hello, I have a question, the Sscofpmf spec why don't support the interrupt overflow of cycle and instret?

Mcounteren relevance in reading scountovf

Hi,
The spec says,

In M and S modes, scountovf bit X is readable when mcounteren bit X is set, and otherwise reads as zero.

Should it be the case that the mcounteren bit only matters while reading scountovf from S mode ? And scountovf should always give the true value on reading in M mode irrespective of the corresponding mcounteren bits.
Asking this since mcounteren controls the availability of the hardware performance-monitoring counters to the next-lowest privileged mode.

Thanks

Ratified Version Document

Sscofpmf is ratified in 2021. However, the version of document is 0.5.2-frozen. Does the ratification bump the version to 1.0-ratified?

What is the value of the OF bit after an overflowing CSRW clearing the OF bit?

Hello @gfavor,

I want to understand the corner case behavior of the OF bit.

An instruction causing the HPM counter to overflow will set the OF bit. Additionally, a CSRW instruction can clear the OF bit. Consider the counting event includes CSRW instructions. What is the value of the OF bit after an overflowing CSRW clearing the OF bit?

The Zicsr specification says that the CSRW takes priority over the side effects of instruction execution. Is setting the OF bit a side effect of an overflowing instruction?
image

Thank you.

Best regards,
Howard (Yen-Hao) Chen

Can mip/sip CSR write pend count overflow interrupt?

The specification says (in section 1.2):

LCOFIP is read-write in mip and reflects the occurrence of a local count overflow interrupt request resulting from any of the mhpmeventn.OF bits being set.

Does this mean that M-mode software can set this bit to 1 in mip to make LCOFIP pending? And if so, can it be set pending when not delegated to S-mode, thus triggering an immediate M-mode interrupt? Similarly, can S-mode set this bit to 1 in sip if the interrupt has been delegated, potentially also triggering an immediate S-mode interrupt? This behavior is different from that specified for other writeable bits in mip (e.g. SSIP) where writes can pend interrupts for lower exception levels only.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.