On 5/14/26 10:37, James Hilliard wrote:
Octeon exposes CvmCount through RDHWR register 31. Add the Octeon-only
decode path, enable the corresponding HWREna bit for linux-user, and use
an unsigned mask when checking HWREna so bit 31 is handled safely.

For user-mode emulation, return host ticks as a monotonic counter source
suitable for existing Octeon userspace code. In system mode, fall back to
the existing CP0 Count value.

Signed-off-by: James Hilliard <[email protected]>
---
  target/mips/cpu.c           |  2 +-
  target/mips/helper.h        |  1 +
  target/mips/tcg/op_helper.c | 13 ++++++++++++-
  target/mips/tcg/translate.c | 11 +++++++++++
  4 files changed, 25 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>


r~

Reply via email to