1. Dec 14, 2023
    • Andrew Waterman's avatar
      Fix UB on signed overflow in mulh routine · 1cc3a1fa
      Andrew Waterman authored
      We want to evaluate whether the product of a and b is zero mod 2^64,
      but the product might overflow, resulting in UB.  If we instead perform
      the computation in unsigned arithmetic, the overflow behavior is defined.
      
      Resolves #1538
      1cc3a1fa
  2. Dec 12, 2023
  3. Dec 09, 2023
  4. Dec 07, 2023
  5. Dec 06, 2023
  6. Dec 02, 2023
  7. Dec 01, 2023
  8. Nov 30, 2023
  9. Nov 29, 2023
  10. Nov 28, 2023
  11. Nov 25, 2023
  12. Nov 24, 2023
    • YenHaoChen's avatar
      stimecmp: perform menvcfg.STCE permission check when accessing vstimecmp in HS-mode · 6e6885fe
      YenHaoChen authored
      The spec requires menvcfg.STCE=1 on accessing stimecmp or vstimecmp in a
      mode other than M-mode. The previous implementation does not check the
      permission on accessing vstimecmp in HS-mode. This commit fixes the
      issue by moveing the permission check from virtualized_stimecmp_csr_t to
      stimecmp_csr_t, which implements the vstimecmp.
      6e6885fe