1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Provide full access to stored registers.

This commit is contained in:
Thomas Harte 2024-03-09 15:11:04 -05:00
parent d059e7c5d8
commit a4cf86268e

View File

@ -550,6 +550,12 @@ struct Executor {
return registers_;
}
// Included primarily for testing; my full opinion on this is still
// incompletely-formed.
Registers &registers() {
return registers_;
}
/// Indicates a prefetch abort exception.
void prefetch_abort() {
registers_.exception<Registers::Exception::PrefetchAbort>();