mirror of
https://github.com/TomHarte/CLK.git
synced 2025-03-21 09:29:41 +00:00
Correct address on stack upon priviliege exception.
This commit is contained in:
parent
ba2e5a97a9
commit
fe10a10ac2
@ -332,6 +332,9 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
||||
active_program_ = nullptr;
|
||||
active_micro_op_ = short_exception_micro_ops_;
|
||||
populate_trap_steps(8, status());
|
||||
|
||||
// The location of the failed instruction is what should end up on the stack.
|
||||
program_counter_.full -= 4;
|
||||
} else {
|
||||
// Standard instruction dispatch.
|
||||
active_program_ = &instructions[decoded_instruction_.full];
|
||||
|
Loading…
x
Reference in New Issue
Block a user