cleanup spurious error on abort ack path

when the target aborts the transaction, we don't get an abort_done
interrupt, because we explicitly acknowledge the abort by asserting
it on our side (I mean, we could modify the protocol to generate
an interrupt but it would be redundant).
This commit is contained in:
bunnie 2023-08-09 23:17:36 +08:00
parent c79edf3fa5
commit 92074230b3

View file

@ -261,6 +261,7 @@ fn main() {
unsafe{mailbox.send_unguarded(&test_array[0..2])};
}
8 => {
abort_init_seen = false;
test_array[0] = 0x4_0008; // 4 words sent, test sequence 8
for t in test_array[1..4].iter_mut() {
*t = generator;
@ -272,11 +273,7 @@ fn main() {
if !abort_init_seen {
log::error!("We did not see the other side initiate an abort");
}
if !abort_done_seen {
log::error!("We didn't ack the abort");
}
abort_init_seen = false;
abort_done_seen = false;
test_array[0] = 0x3_0009; // 3 words sent, test sequence 9
for t in test_array[1..3].iter_mut() {
@ -332,6 +329,7 @@ fn main() {
abort_init_seen = true;
mailbox.abort_pending = false;
log::info!("test peer initiated abort!");
// acknowledge the abort
mailbox.csr.wfo(utra::mailbox::CONTROL_ABORT, 1);
// initiate the next test in the sequence
let last_seq_no = test_array[0] & 0xffff;