riscv: actually, CLINT allows reading the match registers!

This commit is contained in:
Lily Tsuru 2023-07-22 22:46:36 -04:00
parent aa66a1ff2e
commit 09b1969d22
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,12 @@ namespace riscv::devices {
case TIMERH_ADDRESS:
return timerCountHigh;
case MATCHL_ADDRESS:
return timerMatchLow;
case MATCHH_ADDRESS:
return timerMatchHigh;
default:
return 0x0;

View File

@ -30,3 +30,7 @@ struct SimpleUartDevice : public riscv::Bus::MmioDevice {
}
}
};
int main() {
return 0;
}