We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488a98e commit b117c39Copy full SHA for b117c39
hw/opentitan/ot_dma.c
@@ -948,19 +948,19 @@ static bool ot_dma_go(OtDMAState *s)
948
949
static void ot_dma_abort(OtDMAState *s)
950
{
951
- if (!ot_dma_is_busy(s)) {
952
- /* nothing to do, but ABORTED be signaled? */
953
- return;
954
- }
955
-
956
trace_ot_dma_abort(s->ot_id);
957
958
s->abort = true;
959
960
- /* simulate a delayed response */
961
timer_del(s->timer);
+
962
uint64_t now = qemu_clock_get_ns(OT_VIRTUAL_CLOCK);
963
- timer_mod(s->timer, (int64_t)(now + s->pace_delay));
+ if (ot_dma_is_busy(s)) {
+ /* simulate a delayed response */
+ now += s->pace_delay;
+ }
+ timer_mod(s->timer, (int64_t)now);
964
}
965
966
static void ot_dma_complete(OtDMAState *s)
0 commit comments