riscv: actually, CLINT allows reading the match registers!
This commit is contained in:
parent
aa66a1ff2e
commit
09b1969d22
|
@ -28,6 +28,12 @@ namespace riscv::devices {
|
||||||
case TIMERH_ADDRESS:
|
case TIMERH_ADDRESS:
|
||||||
return timerCountHigh;
|
return timerCountHigh;
|
||||||
|
|
||||||
|
case MATCHL_ADDRESS:
|
||||||
|
return timerMatchLow;
|
||||||
|
|
||||||
|
case MATCHH_ADDRESS:
|
||||||
|
return timerMatchHigh;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0x0;
|
return 0x0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,3 +30,7 @@ struct SimpleUartDevice : public riscv::Bus::MmioDevice {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue