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.
This commit is contained in:
Rodrigo Arias 2024-06-21 09:39:32 +02:00
parent e31f0f1ded
commit 49cecb798a

View File

@ -431,8 +431,7 @@ connect_thread_prv(struct emu *emu, struct thread *sth, struct prv *prv)
* trace for the current thread */ * trace for the current thread */
struct chan *out = track_get_output(track); struct chan *out = track_get_output(track);
long row = sth->gindex; long row = sth->gindex;
/* Allow zero value and skip duplicated nulls */ long flags = PRV_SKIPDUPNULL;
long flags = PRV_ZERO | PRV_SKIPDUPNULL;
long prvtype = type->prvtype; long prvtype = type->prvtype;
if (prv_register(prv, row, prvtype, &emu->bay, out, flags)) { if (prv_register(prv, row, prvtype, &emu->bay, out, flags)) {
err("prv_register failed"); 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 */ * trace for the current thread */
struct chan *out = track_get_output(track); struct chan *out = track_get_output(track);
long row = scpu->gindex; long row = scpu->gindex;
/* Allow zero value and skip duplicated nulls */ long flags = PRV_SKIPDUPNULL;
long flags = PRV_ZERO | PRV_SKIPDUPNULL;
long prvtype = type->prvtype; long prvtype = type->prvtype;
if (prv_register(prv, row, prvtype, &emu->bay, out, flags)) { if (prv_register(prv, row, prvtype, &emu->bay, out, flags)) {
err("prv_register failed"); err("prv_register failed");