From 49cecb798a5c6be0882c29e5727fb0c038dd156c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 21 Jun 2024 09:39:32 +0200 Subject: [PATCH] Don't allow zero in PRV for mark channels As the zero value is not allowed to reach the mark channels, there is no need to allow it in the PRV end. --- src/emu/ovni/mark.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/emu/ovni/mark.c b/src/emu/ovni/mark.c index 75314a1..ff2f340 100644 --- a/src/emu/ovni/mark.c +++ b/src/emu/ovni/mark.c @@ -431,8 +431,7 @@ connect_thread_prv(struct emu *emu, struct thread *sth, struct prv *prv) * trace for the current thread */ struct chan *out = track_get_output(track); long row = sth->gindex; - /* Allow zero value and skip duplicated nulls */ - long flags = PRV_ZERO | PRV_SKIPDUPNULL; + long flags = PRV_SKIPDUPNULL; long prvtype = type->prvtype; if (prv_register(prv, row, prvtype, &emu->bay, out, flags)) { err("prv_register failed"); @@ -547,8 +546,7 @@ connect_cpu_prv(struct emu *emu, struct cpu *scpu, struct prv *prv) * trace for the current thread */ struct chan *out = track_get_output(track); long row = scpu->gindex; - /* Allow zero value and skip duplicated nulls */ - long flags = PRV_ZERO | PRV_SKIPDUPNULL; + long flags = PRV_SKIPDUPNULL; long prvtype = type->prvtype; if (prv_register(prv, row, prvtype, &emu->bay, out, flags)) { err("prv_register failed");