diff options
Diffstat (limited to 'qtmips_machine/cop0state.cpp')
-rw-r--r-- | qtmips_machine/cop0state.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_machine/cop0state.cpp b/qtmips_machine/cop0state.cpp index 35f78d1..1caada1 100644 --- a/qtmips_machine/cop0state.cpp +++ b/qtmips_machine/cop0state.cpp @@ -150,7 +150,10 @@ QString Cop0State::cop0reg_name(enum Cop0Registers reg) { } std::uint32_t Cop0State::read_cop0reg_default(enum Cop0Registers reg) const { - return cop0reg[(int)reg]; + std::uint32_t val; + val = cop0reg[(int)reg]; + emit cop0reg_read(reg, val); + return val; } void Cop0State::write_cop0reg_default(enum Cop0Registers reg, std::uint32_t value) { |