We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8f24f4 + 0fcee70 commit 23ae8e5Copy full SHA for 23ae8e5
src/emulate.c
@@ -131,6 +131,8 @@ static uint32_t *csr_get_ptr(riscv_t *rv, uint32_t csr)
131
return &rv->csr_time[1];
132
case CSR_INSTRET: /* Number of Instructions Retired Counter */
133
return (uint32_t *) (&rv->csr_cycle);
134
+ case CSR_INSTRETH: /* Upper 32 bits of instructions retired */
135
+ return &((uint32_t *) &rv->csr_cycle)[1];
136
#if RV32_HAS(EXT_F)
137
case CSR_FFLAGS:
138
return (uint32_t *) (&rv->csr_fcsr);
0 commit comments