summaryrefslogtreecommitdiff
path: root/website-emu/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'website-emu/src/state.rs')
-rw-r--r--website-emu/src/state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/website-emu/src/state.rs b/website-emu/src/state.rs
index f26167f..4b32713 100644
--- a/website-emu/src/state.rs
+++ b/website-emu/src/state.rs
@@ -5,6 +5,7 @@ pub struct CpuState {
pub registers: [u32; 32],
pub csr: [u32; 4096],
pub pc: u32,
+ pub on: bool
}
impl CpuState {
@@ -13,7 +14,8 @@ impl CpuState {
memory,
registers: [0u32; 32],
csr: [0u32; 4096],
- pc: 0
+ pc: 0,
+ on: true
}
}
}