mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-22 15:28:56 +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_program_ = nullptr;
|
||||||
active_micro_op_ = short_exception_micro_ops_;
|
active_micro_op_ = short_exception_micro_ops_;
|
||||||
populate_trap_steps(8, status());
|
populate_trap_steps(8, status());
|
||||||
|
|
||||||
|
// The location of the failed instruction is what should end up on the stack.
|
||||||
|
program_counter_.full -= 4;
|
||||||
} else {
|
} else {
|
||||||
// Standard instruction dispatch.
|
// Standard instruction dispatch.
|
||||||
active_program_ = &instructions[decoded_instruction_.full];
|
active_program_ = &instructions[decoded_instruction_.full];
|
||||||
|
Loading…
Reference in New Issue
Block a user